aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/LoadVN/call_cse.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/LoadVN/call_cse.ll')
-rw-r--r--test/Analysis/LoadVN/call_cse.ll12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/Analysis/LoadVN/call_cse.ll b/test/Analysis/LoadVN/call_cse.ll
deleted file mode 100644
index b62300f5ab..0000000000
--- a/test/Analysis/LoadVN/call_cse.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep sub
-
-declare i32 @strlen(i8*) readonly
-
-define i32 @test(i8* %P) {
- %X = call i32 @strlen( i8* %P ) readonly ; <i32> [#uses=2]
- %A = add i32 %X, 14 ; <i32> [#uses=1]
- %Y = call i32 @strlen( i8* %P ) readonly ; <i32> [#uses=1]
- %Z = sub i32 %X, %Y ; <i32> [#uses=1]
- %B = add i32 %A, %Z ; <i32> [#uses=1]
- ret i32 %B
-}