diff options
author | Andrew Trick <atrick@apple.com> | 2011-07-18 20:32:31 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-07-18 20:32:31 +0000 |
commit | 7da2417c8af466cd90025d11d46ea72099e230be (patch) | |
tree | a858c28af803d19ad3bd64c218bd9a289fcc0508 /llvm/test/Transforms/IndVarSimplify/ada-loops.ll | |
parent | 357033b33738f97407e6b7e84f6a9bf2e139d943 (diff) | |
download | bcm5719-llvm-7da2417c8af466cd90025d11d46ea72099e230be.tar.gz bcm5719-llvm-7da2417c8af466cd90025d11d46ea72099e230be.zip |
indvars: LinearFunctionTestReplace for non-canonical IVs.
For -disable-iv-rewrite, perform LFTR without generating a new
"canonical" induction variable. Instead find the "best" existing
induction variable for use in the loop exit test and compute the final
value of that IV for use in the new loop exit test. In short,
convert to a simple eq/ne exit test as long as it's cheap to do so.
llvm-svn: 135420
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/ada-loops.ll')
-rw-r--r-- | llvm/test/Transforms/IndVarSimplify/ada-loops.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/ada-loops.ll b/llvm/test/Transforms/IndVarSimplify/ada-loops.ll index 9e635fdc006..da7ecb66c54 100644 --- a/llvm/test/Transforms/IndVarSimplify/ada-loops.ll +++ b/llvm/test/Transforms/IndVarSimplify/ada-loops.ll @@ -9,10 +9,9 @@ ; Note that all four functions should actually be converted to ; memset. However, this test case validates indvars behavior. We ; don't check that phis are "folded together" because that is a job -; for loop strength reduction. But indvars must remove sext, zext, -; trunc, and add i8. +; for loop strength reduction. But indvars must remove sext, zext, and add i8. ; -; CHECK-NOT: {{sext|zext|trunc|add i8}} +; CHECK-NOT: {{sext|zext|add i8}} ; ModuleID = 'ada.bc' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-n:8:16:32" |