forked from OSchip/llvm-project
parent
d729115fa7
commit
e6e58c1a9e
|
@ -888,7 +888,7 @@ static bool getEdgeValueLocal(Value *Val, BasicBlock *BBFrom,
|
|||
// know that v != 0.
|
||||
if (BranchInst *BI = dyn_cast<BranchInst>(BBFrom->getTerminator())) {
|
||||
// If this is a conditional branch and only one successor goes to BBTo, then
|
||||
// we maybe able to infer something from the condition.
|
||||
// we may be able to infer something from the condition.
|
||||
if (BI->isConditional() &&
|
||||
BI->getSuccessor(0) != BI->getSuccessor(1)) {
|
||||
bool isTrueDest = BI->getSuccessor(0) == BBTo;
|
||||
|
|
Loading…
Reference in New Issue