diff options
author | Andrew Trick <atrick@apple.com> | 2011-03-18 16:50:32 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-03-18 16:50:32 +0000 |
commit | 5fd5b125ff41088c005b7107e8cf92f281313040 (patch) | |
tree | f5a579acd5113f28673eaa0d250564a8ced53fed /test/Transforms/LoopStrengthReduce/ops_after_indvar.ll | |
parent | 84161c2f683357938cf283f40bd1ef3e61c317f5 (diff) | |
download | external_llvm-5fd5b125ff41088c005b7107e8cf92f281313040.zip external_llvm-5fd5b125ff41088c005b7107e8cf92f281313040.tar.gz external_llvm-5fd5b125ff41088c005b7107e8cf92f281313040.tar.bz2 |
Avoid creating canonical induction variables for non-native types.
For example, on 32-bit architecture, don't promote all uses of the IV
to 64-bits just because one use is a 64-bit cast.
Alternate implementation of the patch by Arnaud de Grandmaison.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopStrengthReduce/ops_after_indvar.ll')
-rw-r--r-- | test/Transforms/LoopStrengthReduce/ops_after_indvar.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Transforms/LoopStrengthReduce/ops_after_indvar.ll b/test/Transforms/LoopStrengthReduce/ops_after_indvar.ll index 410d88f..00bd068 100644 --- a/test/Transforms/LoopStrengthReduce/ops_after_indvar.ll +++ b/test/Transforms/LoopStrengthReduce/ops_after_indvar.ll @@ -1,7 +1,9 @@ ; Check that this test makes INDVAR and related stuff dead, because P[indvar] ; gets reduced, making INDVAR dead. -; RUN: opt < %s -loop-reduce -S -default-data-layout="e-p:32:32:32" | not grep INDVAR +; RUN: opt < %s -loop-reduce -S | not grep INDVAR + +target datalayout = "e-p:32:32:32-n:32" declare i1 @pred() |