trip count computation deficiency
authorChris Lattner <sabre@nondot.org>
Sat, 17 May 2008 15:37:38 +0000 (15:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 May 2008 15:37:38 +0000 (15:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51222 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/README.txt

index 2c120896996da2cfd14f48e8514e0138a1dd94c8..1b55ac69bf56a77cd51e6dfbde26e7ec74478435 100644 (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;
+}
+
+//===---------------------------------------------------------------------===//