aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/preserve-gep-nested.ll
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-03-18 16:50:32 +0000
committerAndrew Trick <atrick@apple.com>2011-03-18 16:50:32 +0000
commit5fd5b125ff41088c005b7107e8cf92f281313040 (patch)
treef5a579acd5113f28673eaa0d250564a8ced53fed /test/Transforms/IndVarSimplify/preserve-gep-nested.ll
parent84161c2f683357938cf283f40bd1ef3e61c317f5 (diff)
downloadexternal_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/IndVarSimplify/preserve-gep-nested.ll')
-rw-r--r--test/Transforms/IndVarSimplify/preserve-gep-nested.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/IndVarSimplify/preserve-gep-nested.ll b/test/Transforms/IndVarSimplify/preserve-gep-nested.ll
index bb0993c..b41de58 100644
--- a/test/Transforms/IndVarSimplify/preserve-gep-nested.ll
+++ b/test/Transforms/IndVarSimplify/preserve-gep-nested.ll
@@ -13,7 +13,7 @@
; FIXME: This test should pass with or without TargetData. Until opt
; supports running tests without targetdata, just hardware this in.
-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"
%struct.Q = type { [10 x %struct.N] }
%struct.N = type { %struct.S }