[llvm] r278616 - [IRCE] Add better DEBUG diagnostic; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 13 18:04:31 PDT 2016
Author: sanjoy
Date: Sat Aug 13 20:04:31 2016
New Revision: 278616
URL: http://llvm.org/viewvc/llvm-project?rev=278616&view=rev
Log:
[IRCE] Add better DEBUG diagnostic; NFC
NFC meaning IRCE should not _do_ anything different, but
-debug-only=irce will be a little friendlier.
Modified:
llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp?rev=278616&r1=278615&r2=278616&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp Sat Aug 13 20:04:31 2016
@@ -622,8 +622,10 @@ static bool CanBeSMin(ScalarEvolution &S
Optional<LoopStructure>
LoopStructure::parseLoopStructure(ScalarEvolution &SE, BranchProbabilityInfo &BPI,
Loop &L, const char *&FailureReason) {
- if (!L.isLoopSimplifyForm())
+ if (!L.isLoopSimplifyForm()) {
+ FailureReason = "loop not in LoopSimplify form";
return None;
+ }
BasicBlock *Latch = L.getLoopLatch();
assert(Latch && "Simplified loops only have one latch!");
More information about the llvm-commits
mailing list