The math works out where it can actually be counter-productive. The probability
calculations correctly handle the case where the alternative is 0 probability,
rely on those calculations.
Details
Details
- Reviewers
- davidxl 
Diff Detail
Diff Detail
| Paths 
 |  Differential  D31560  
CodeGen: BlockPlacement: Don't always tail-duplicate with no other successor. ClosedPublic Authored by iteratee on Mar 31 2017, 5:41 PM. 
Details 
 Summary The math works out where it can actually be counter-productive. The probability 
Diff Detail 
Revision Contents 
 
Diff 93732 lib/CodeGen/MachineBlockPlacement.cpp
 test/CodeGen/X86/tail-dup-no-other-successor.ll
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||