instcombine: Migrate printf optimizations
authorMeador Inge <meadori@codesourcery.com>
Mon, 26 Nov 2012 20:37:20 +0000 (20:37 +0000)
committerMeador Inge <meadori@codesourcery.com>
Mon, 26 Nov 2012 20:37:20 +0000 (20:37 +0000)
commitd7aa3231f75174810a3443e6c2e1993ddefc1dd2
treeac4db0bb411570b2b99618e56c52f76bcea1f256
parent22689b6034dbde1c08e39b162fd59e1fd5d35b96
instcombine: Migrate printf optimizations

This patch migrates the printf optimizations from the simplify-libcalls
pass into the instcombine library call simplifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168604 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/debug-line.ll [new file with mode: 0644]
test/Transforms/InstCombine/printf-1.ll [new file with mode: 0644]
test/Transforms/SimplifyLibCalls/Printf.ll [deleted file]
test/Transforms/SimplifyLibCalls/debug-line.ll [deleted file]
test/Transforms/SimplifyLibCalls/iprintf.ll