Don't assume it's safe to transform a loop just because it's dominated by any

comparison. Fixes bug 1598.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40866 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky
2007-08-06 18:33:46 +00:00
parent 7409cabc3e
commit 06323bfe03
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -2387,7 +2387,7 @@ HowManyLessThans(SCEV *LHS, SCEV *RHS, const Loop *L) {
return UnknownValue; // Not a comparison against 'n-1'.
}
else return UnknownValue;
} else if (Cond == ICmpInst::ICMP_ULT)
} else
return UnknownValue;
// cerr << "Computed Loop Trip Count as: "