Skip to content

Commit

Permalink
[IRCE] Add better DEBUG diagnostic; NFC
Browse files Browse the repository at this point in the history
NFC meaning IRCE should not _do_ anything different, but
-debug-only=irce will be a little friendlier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278616 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
sanjoy committed Aug 14, 2016
1 parent 2c1c0b4 commit abf7d54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,10 @@ static bool CanBeSMin(ScalarEvolution &SE, const SCEV *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!");
Expand Down

0 comments on commit abf7d54

Please sign in to comment.