summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-10-13 14:04:21 +0000
committerDaniel Jasper <djasper@google.com>2017-10-13 14:04:21 +0000
commit3344a21236837f9920eca7439656a1127f937862 (patch)
treeb20e3f9322e813469e7916eef940a98eca57180e /llvm/test/Transforms/SimplifyCFG
parent9a26a7ec331e01fdf2a9438eff10d901420c1c27 (diff)
downloadbcm5719-llvm-3344a21236837f9920eca7439656a1127f937862.tar.gz
bcm5719-llvm-3344a21236837f9920eca7439656a1127f937862.zip
Revert r314923: "Recommit : Use the basic cost if a GEP is not used as addressing mode"
Significantly reduces performancei (~30%) of gipfeli (https://github.com/google/gipfeli) I have not yet managed to reproduce this regression with the open-source version of the benchmark on github, but will work with others to get a reproducer to you later today. llvm-svn: 315680
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/SpeculativeExecGepCE.ll28
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/SpeculativeExecGepCE.ll b/llvm/test/Transforms/SimplifyCFG/SpeculativeExecGepCE.ll
deleted file mode 100644
index 46b91fa4ccb..00000000000
--- a/llvm/test/Transforms/SimplifyCFG/SpeculativeExecGepCE.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-; RUN: opt < %s -simplifycfg -phi-node-folding-threshold=0 -S | FileCheck %s
-
-target triple = "x86_64-unknown-linux-gnu"
-
-@d_buf = internal constant [8 x i8] [i8 126, i8 127, i8 128, i8 129, i8 130, i8 131, i8 132, i8 133], align 8
-@a = internal constant { i8*, i64} {i8* getelementptr inbounds ([8 x i8], [8 x i8]* @d_buf, i64 0, i64 0), i64 0}
-
-; CHECK-LABEL: @test
-; CHECK-LABEL: end:
-; CHECK: %x1 = phi i8*
-define i8* @test(i1* %dummy, i8* %a, i8* %b, i8 %v) {
-
-entry:
- %cond1 = load volatile i1, i1* %dummy
- br i1 %cond1, label %if, label %end
-
-if:
- %cond2 = load volatile i1, i1* %dummy
- br i1 %cond2, label %then, label %end
-
-then:
- br label %end
-
-end:
- %x1 = phi i8* [ %a, %entry ], [ %b, %if ], [getelementptr inbounds ([8 x i8], [8 x i8]* @d_buf, i64 0, i64 0) , %then ]
-
- ret i8* %x1
-}
OpenPOWER on IntegriCloud