instcombine: Query target library information to gate libcall simplifications
authorMeador Inge <meadori@codesourcery.com>
Sat, 10 Nov 2012 03:11:10 +0000 (03:11 +0000)
committerMeador Inge <meadori@codesourcery.com>
Sat, 10 Nov 2012 03:11:10 +0000 (03:11 +0000)
commite29c88064fb11d630d00356ad8d340b9dca9ef77
tree2ea54b602a2b2195ca84261ebea251c02d6026cd
parent939f5002027e3ccb710ac1c3050dc25471251565
instcombine: Query target library information to gate libcall simplifications

Several of the simplifiers migrated from the simplify-libcalls pass to
the instcombine pass were not correctly checking the target library
information to gate the simplifications.  This patch ensures that the
check is made.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167660 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/disable-simplify-libcalls.ll [new file with mode: 0644]