instcombine: Migrate puts optimizations
authorMeador Inge <meadori@codesourcery.com>
Thu, 29 Nov 2012 19:15:17 +0000 (19:15 +0000)
committerMeador Inge <meadori@codesourcery.com>
Thu, 29 Nov 2012 19:15:17 +0000 (19:15 +0000)
commitaa8cccf1292503f4a5d3fc55610f9a24f6dbee74
tree9d890f8ecc1992f865fcb0cf9242878e72618bf4
parentf2c87b1c054fd4ea6f0215affb4ccfc36b77bcd8
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.

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