Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % cat eh2.ll
- ; ModuleID = 'eh1.cc'
- entry:
- cont:
- unreachable
- lpad:
- ret void
- }
- % ./bin/opt -analyze -branch-prob eh2.ll
- Printing analysis 'Branch Probability Analysis' for function 'test':
- ---- Branch Probabilities ----
- edge entry -> cont probability is 1 / 1024 = 0.0976562%
- edge entry -> lpad probability is 1023 / 1024 = 99.9023% [HOT edge]
- % ./bin/llc -O2 -debug-only=block-placement2 -enable-block-placement -o - eh2.ll
- .file "eh2.ll"
- Attempting merge from: BB#0 (derived from LLVM BB 'entry')
- BB#1 (derived from LLVM BB 'cont') -> 16 / 32 = 50% (prob)
- BB#2 (derived from LLVM BB 'lpad') -> 16 / 32 = 50% (prob)
Add Comment
Please, Sign In to add comment