[llvm] r303544 - [LoopPredication] NFC. Add extra debug output in case we fail to parse the range check
Artur Pilipenko via llvm-commits
llvm-commits at lists.llvm.org
Mon May 22 05:06:57 PDT 2017
Author: apilipenko
Date: Mon May 22 07:06:57 2017
New Revision: 303544
URL: http://llvm.org/viewvc/llvm-project?rev=303544&view=rev
Log:
[LoopPredication] NFC. Add extra debug output in case we fail to parse the range check
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp?rev=303544&r1=303543&r2=303544&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp Mon May 22 07:06:57 2017
@@ -182,8 +182,10 @@ Optional<Value *> LoopPredication::widen
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;
More information about the llvm-commits
mailing list