instcombine: Migrate *abs optimizations
authorMeador Inge <meadori@codesourcery.com>
Mon, 26 Nov 2012 00:24:07 +0000 (00:24 +0000)
committerMeador Inge <meadori@codesourcery.com>
Mon, 26 Nov 2012 00:24:07 +0000 (00:24 +0000)
commitdfb3b1a779c62c1ee41f9cddcaad0b89278052ae
tree809db6e0fb93be4b0f656268dd396aa9ef419334
parent15d099a790f3fd6f8f643c4e7c50a1659f4fc92b
instcombine: Migrate *abs optimizations

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

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