summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyLibCalls
diff options
context:
space:
mode:
authorMeador Inge <meadori@codesourcery.com>2012-11-29 19:15:17 +0000
committerMeador Inge <meadori@codesourcery.com>2012-11-29 19:15:17 +0000
commit75798bb7fe4fa9d820a6a5df689a488430def2ea (patch)
tree74304e1d1cf5664ce8603c0280c1c7e60c6eacde /llvm/test/Transforms/SimplifyLibCalls
parent59aeece231d2ce6eb2552d140eec9a5b3642c24f (diff)
downloadbcm5719-llvm-75798bb7fe4fa9d820a6a5df689a488430def2ea.tar.gz
bcm5719-llvm-75798bb7fe4fa9d820a6a5df689a488430def2ea.zip
instcombine: Migrate puts optimizations
This patch migrates the puts optimizations from the simplify-libcalls pass into the instcombine library call simplifier. All the simplifiers from simplify-libcalls have now been migrated to instcombine. Yay! Just a few other bits to migrate (prototype attribute inference and a few statistics) and simplify-libcalls can finally be put to rest. llvm-svn: 168925
Diffstat (limited to 'llvm/test/Transforms/SimplifyLibCalls')
-rw-r--r--llvm/test/Transforms/SimplifyLibCalls/Puts.ll15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/test/Transforms/SimplifyLibCalls/Puts.ll b/llvm/test/Transforms/SimplifyLibCalls/Puts.ll
deleted file mode 100644
index aa689048104..00000000000
--- a/llvm/test/Transforms/SimplifyLibCalls/Puts.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; Test that the PutsOptimizer works correctly
-; RUN: opt < %s -simplify-libcalls -S | FileCheck %s
-
-target datalayout = "p:64:64:64"
-
-@.str = private constant [1 x i8] zeroinitializer
-
-declare i32 @puts(i8*)
-
-define void @foo() {
-entry:
-; CHECK: call i32 @putchar(i32 10)
- %call = call i32 @puts(i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0))
- ret void
-}
OpenPOWER on IntegriCloud