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 | 1c4b42d00f8cad70582e9afc6d1dbdab8253e2ab (patch) | |
tree | 1684a357805a4974fc2737566f1e1294cf1b513c /llvm/test/Transforms/LoopSimplify | |
parent | 6e31408af1ed463b5f0290085b6dd2f6fff83ed1 (diff) | |
download | bcm5719-llvm-1c4b42d00f8cad70582e9afc6d1dbdab8253e2ab.tar.gz bcm5719-llvm-1c4b42d00f8cad70582e9afc6d1dbdab8253e2ab.zip |
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.
llvm-svn: 127884
Diffstat (limited to 'llvm/test/Transforms/LoopSimplify')
-rw-r--r-- | llvm/test/Transforms/LoopSimplify/merge-exits.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopSimplify/merge-exits.ll b/llvm/test/Transforms/LoopSimplify/merge-exits.ll index 93a224744ca..e5e471766b9 100644 --- a/llvm/test/Transforms/LoopSimplify/merge-exits.ll +++ b/llvm/test/Transforms/LoopSimplify/merge-exits.ll @@ -7,7 +7,7 @@ ; that indvars can promote the induction variable to i64 ; without needing casts. -target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" +target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64" define float @t(float* %pTmp1, float* %peakWeight, i32 %bandEdgeIndex) nounwind { entry: |