[ValueTracking] Add parameters to isImpliedCondition; NFC
[oota-llvm.git] / lib / Transforms / Utils / SimplifyCFG.cpp
index b119d2df035d4d6b358d1fc30a23e7772bd88ae0..25b83e256a66da37c07be9908425225e91d2d99c 100644 (file)
@@ -2686,7 +2686,7 @@ static bool SimplifyCondBranchToCondBranch(BranchInst *PBI, BranchInst *BI,
   // If BI is reached from the true path of PBI and PBI's condition implies
   // BI's condition, we know the direction of the BI branch.
   if (PBI->getSuccessor(0) == BI->getParent() &&
-      isImpliedCondition(PBI->getCondition(), BI->getCondition()) &&
+      isImpliedCondition(PBI->getCondition(), BI->getCondition(), DL) &&
       PBI->getSuccessor(0) != PBI->getSuccessor(1) &&
       BB->getSinglePredecessor()) {
     // Turn this into a branch on constant.