Skip to content

Commit

Permalink
[LoopPredication] NFC. Add extra debug output in case we fail to pars…
Browse files Browse the repository at this point in the history
…e the range check

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303544 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
arpilipe committed May 22, 2017
1 parent 73576b5 commit 63e5aa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Transforms/Scalar/LoopPredication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ Optional<Value *> LoopPredication::widenICmpRangeCheck(ICmpInst *ICI,
DEBUG(ICI->dump());

auto RangeCheck = parseLoopICmp(ICI);
if (!RangeCheck)
if (!RangeCheck) {
DEBUG(dbgs() << "Failed to parse the loop latch condition!\n");
return None;
}

ICmpInst::Predicate Pred = RangeCheck->Pred;
const SCEVAddRecExpr *IndexAR = RangeCheck->IV;
Expand Down

0 comments on commit 63e5aa7

Please sign in to comment.