From: Chris Lattner Date: Sat, 17 May 2008 15:37:38 +0000 (+0000) Subject: trip count computation deficiency X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b5783106c469b9ec286e7c193e25a9e2f4e80368;p=oota-llvm.git trip count computation deficiency git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51222 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 2c120896996..1b55ac69bf5 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -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; +} + +//===---------------------------------------------------------------------===//