For the following CFG:
A->B
B->C
A->C
If there is another edge B->D, then ABC should not be considered as triangle.
Paths
| Differential D31310
Fix trellis layout to avoid mis-identify triangle. ClosedPublic Authored by danielcdh on Mar 23 2017, 2:20 PM.
Details Summary For the following CFG: A->B If there is another edge B->D, then ABC should not be considered as triangle.
Diff Detail
Event TimelineComment Actions Thanks for catching this. The test case can stay, but I think the fix needs to go in a different spot. Good work.
This revision is now accepted and ready to land.Mar 23 2017, 4:15 PM danielcdh retitled this revision from Fix trellis layout when there is triangle. to Fix trellis layout to avoid mis-identify triangle..Mar 23 2017, 4:26 PM
Revision Contents
Diff 92868 lib/CodeGen/MachineBlockPlacement.cpp
test/CodeGen/PowerPC/tail-dup-layout.ll
|
I appreciate the test case, but I think the logic needs to go here.