Home
last modified time | relevance | path

Searched refs:Pred1Br (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBasicBlockUtils.cpp703 BranchInst *Pred1Br = dyn_cast<BranchInst>(Pred1->getTerminator()); in GetIfCondition() local
705 if (!Pred1Br || !Pred2Br) in GetIfCondition()
715 if (Pred1Br->isConditional()) in GetIfCondition()
719 std::swap(Pred1Br, Pred2Br); in GetIfCondition()
722 if (Pred1Br->isConditional()) { in GetIfCondition()
731 if (Pred1Br->getSuccessor(0) == BB && in GetIfCondition()
732 Pred1Br->getSuccessor(1) == Pred2) { in GetIfCondition()
735 } else if (Pred1Br->getSuccessor(0) == Pred2 && in GetIfCondition()
736 Pred1Br->getSuccessor(1) == BB) { in GetIfCondition()
745 return Pred1Br->getCondition(); in GetIfCondition()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyCFG.cpp141 BranchInst *Pred1Br = dyn_cast<BranchInst>(Pred1->getTerminator()); in GetIfCondition() local
143 if (Pred1Br == 0 || Pred2Br == 0) in GetIfCondition()
153 if (Pred1Br->isConditional()) in GetIfCondition()
157 std::swap(Pred1Br, Pred2Br); in GetIfCondition()
160 if (Pred1Br->isConditional()) { in GetIfCondition()
169 if (Pred1Br->getSuccessor(0) == BB && in GetIfCondition()
170 Pred1Br->getSuccessor(1) == Pred2) { in GetIfCondition()
173 } else if (Pred1Br->getSuccessor(0) == Pred2 && in GetIfCondition()
174 Pred1Br->getSuccessor(1) == BB) { in GetIfCondition()
183 return Pred1Br->getCondition(); in GetIfCondition()