summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-10-29 06:31:11 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-10-29 06:31:11 +0000
commit56ade2991b7446924c465430ab24b08bbb705097 (patch)
tree3dfb8c7c75de54677b19a382ff761ede75dcb766
parenta4fcf71bca053e57adec68c9e2dfc699cd4d6141 (diff)
downloadbcm5719-llvm-56ade2991b7446924c465430ab24b08bbb705097.tar.gz
bcm5719-llvm-56ade2991b7446924c465430ab24b08bbb705097.zip
test: tweak inlined-allocs test
Remove pointless checks for storage of uninteresting values. Ensure that we perform basic alias analysis to make the test more correct. Finally, apply a stylistic change to the test. llvm-svn: 220839
-rw-r--r--llvm/test/Transforms/Inline/inlined-allocas.ll6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/Transforms/Inline/inlined-allocas.ll b/llvm/test/Transforms/Inline/inlined-allocas.ll
index e2942816f13..254989b28f8 100644
--- a/llvm/test/Transforms/Inline/inlined-allocas.ll
+++ b/llvm/test/Transforms/Inline/inlined-allocas.ll
@@ -1,4 +1,4 @@
-; RUN: opt -dse -inline -S %s | FileCheck %s
+; RUN: opt -basicaa -dse -inline -S %s | FileCheck %s
declare void @external(i32* byval)
declare i32 @identity(i32* byval)
@@ -19,7 +19,6 @@ define void @inliner_without_alloca() {
; CHECK-LABEL: inliner_without_alloca
; CHECK-NEXT: %local.i = alloca i32
-; CHECK: store i32 42, i32* %local.i
; CHECK: tail call void @external
; CHECK: ret
@@ -34,7 +33,6 @@ define i32 @inliner_with_alloca() {
; CHECK-LABEL: inliner_with_alloca
; CHECK: %local = alloca i32
-; CHECK: store i32 42, i32* %local
; CHECK: %1 = tail call i32 @identity
; CHECK: ret i32 %1
@@ -53,6 +51,6 @@ define void @strip_tail(i32* %value) {
; CHECK-LABEL: strip_tail
; CHECK: %value1 = alloca i32
-; CHECK: {{^ *}}call void @external
+; CHECK-NOT: tail call void @external
; CHECK: ret void
OpenPOWER on IntegriCloud