summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize/induction_plus.ll
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-11-01 22:18:19 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-11-01 22:18:19 +0000
commita846a7f8f054d5e7dcb39c4f3c585752e824ebe1 (patch)
tree006fb5e4147c15b7d7c1888bdb8935d3d82fdebc /llvm/test/Transforms/LoopVectorize/induction_plus.ll
parented265941d4ef9961c68d02eaf5db2e3f6d1d4654 (diff)
downloadbcm5719-llvm-a846a7f8f054d5e7dcb39c4f3c585752e824ebe1.tar.gz
bcm5719-llvm-a846a7f8f054d5e7dcb39c4f3c585752e824ebe1.zip
LoopVectorizer: Perform redundancy elimination on induction variables
When the loop vectorizer was part of the SCC inliner pass manager gvn would run after the loop vectorizer followed by instcombine. This way redundancy (multiple uses) were removed and instcombine could perform scalarization on the induction variables. Having moved the loop vectorizer to later we no longer run any form of redundancy elimination before we perform instcombine. This caused vectorized induction variables to survive that did not before. On a recent iMac this helps linpack back from 6000Mflops to 7000Mflops. This should also help lpbench and paq8p. I ran a Release (without Asserts) build over the test-suite and did not see any negative impact on compile time. radar://15339680 llvm-svn: 193891
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/induction_plus.ll')
-rw-r--r--llvm/test/Transforms/LoopVectorize/induction_plus.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/induction_plus.ll b/llvm/test/Transforms/LoopVectorize/induction_plus.ll
index 6141c39462a..9c8201ab780 100644
--- a/llvm/test/Transforms/LoopVectorize/induction_plus.ll
+++ b/llvm/test/Transforms/LoopVectorize/induction_plus.ll
@@ -6,8 +6,8 @@ target triple = "x86_64-apple-macosx10.8.0"
@array = common global [1024 x i32] zeroinitializer, align 16
;CHECK-LABEL: @array_at_plus_one(
-;CHECK: trunc i64
;CHECK: add i64 %index, 12
+;CHECK: trunc i64
;CHECK: ret i32
define i32 @array_at_plus_one(i32 %n) nounwind uwtable ssp {
%1 = icmp sgt i32 %n, 0
OpenPOWER on IntegriCloud