https://llvm.org/bugs/show_bug.cgi?id=28774

            Bug ID: 28774
           Summary: MIR parsing of BranchProbability is broken
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The branch probability is printed as e.g. "successors:
%bb.2.for.body(0x7c000000 / 0x80000000 = 96.88%)" by BranchProbability.cpp:31:

OS << format("0x%08" PRIx32 " / 0x%08" PRIx32 " = %.2f%%", N, D, Percent);

But this is parsed by MIParser.cpp:463 as:

if (consumeIfPresent(MIToken::lparen)) {
  if (Token.isNot(MIToken::IntegerLiteral))
    return error("expected an integer literal after '('");
  if (getUnsigned(Weight))
    return true;
  lex();
  if (expectAndConsume(MIToken::rparen))
    return true;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to