From b5783106c469b9ec286e7c193e25a9e2f4e80368 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 17 May 2008 15:37:38 +0000 Subject: [PATCH] trip count computation deficiency git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51222 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/README.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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; +} + +//===---------------------------------------------------------------------===// -- 2.34.1