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.
|  Differential  D31310  
Fix trellis layout to avoid mis-identify triangle. Authored by danielcdh on Mar 23 2017, 2:20 PM. 
Details 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. 
 | ||||||||||||||||
I appreciate the test case, but I think the logic needs to go here.
if (Successors.count(SuccPred)) { // Make sure that it is actually a triangle. for (MachineBasicBlock *CheckSucc : SuccPred.successors()) if (!Successors.contains(CheckSucc)) return false; continue; }