trip count computation deficiency

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-05-17 15:37:38 +00:00
parent fbaa37937f
commit b5783106c4

View File

@ -806,3 +806,12 @@ To fix this, we need to make CanEvaluateInDifferentType smarter.
//===---------------------------------------------------------------------===//
We should be able to evaluate this loop:
int test(int x_offs) {
while (x_offs > 4)
x_offs -= 4;
return x_offs;
}
//===---------------------------------------------------------------------===//