summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2014-01-07 01:02:55 +0000
committerAndrew Trick <atrick@apple.com>2014-01-07 01:02:55 +0000
commit0b8e3b2cb41e105a39b9d9b21d6ece18942581cb (patch)
tree4abb5ac6678a00ce85eeb41261cda3d354b92a79 /llvm/test/Transforms/IndVarSimplify
parentb70d9780acdb482052d69e90686d6729a3ff5294 (diff)
downloadbcm5719-llvm-0b8e3b2cb41e105a39b9d9b21d6ece18942581cb.tar.gz
bcm5719-llvm-0b8e3b2cb41e105a39b9d9b21d6ece18942581cb.zip
indvars: sink truncates outside the loop.
This is a follow up of the r198338 commit that added truncates for lcssa phi nodes. Sinking the truncates below the phis cleans up the loop and simplifies subsequent analysis within the indvars pass. llvm-svn: 198654
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/iv-widen.ll7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/iv-widen.ll b/llvm/test/Transforms/IndVarSimplify/iv-widen.ll
index 12067ab6fe8..c899e2f0a58 100644
--- a/llvm/test/Transforms/IndVarSimplify/iv-widen.ll
+++ b/llvm/test/Transforms/IndVarSimplify/iv-widen.ll
@@ -7,10 +7,11 @@ target triple = "x86_64-apple-darwin"
; Only one phi now.
; CHECK: phi
; CHECK-NOT: phi
-; We now get 2 trunc, one for the gep and one for the lcssa phi.
+; One trunc for the gep.
; CHECK: trunc i64 %indvars.iv to i32
-; CHECK: trunc i64 %indvars.iv to i32
-; CHECK-LABEL: B24:
+; One trunc for the dummy() call.
+; CHECK-LABEL: exit24:
+; CHECK: trunc i64 {{.*}}lcssa.wide to i32
define void @sloop(i32* %a) {
Prologue:
br i1 undef, label %B18, label %B6
OpenPOWER on IntegriCloud