https://llvm.org/bugs/show_bug.cgi?id=23832
Bug ID: 23832
Summary: Switch statement lowering leads to incorrect profile
data.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
In lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp, switch statements are
lowered to nested if statements or jump table. When building those if
statements, the original edge weights information are lost, leading to
incorrect block frequencies/branch probabilities in generated code.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs