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)
commit03be256db9fa177cdd90210fe4790a1494f681a8
treee049356408940189ab8bac76f38c70151db555ce
parent2526a42ef1b41b339c3e7bd4a51864bb63eaa8fa
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.

llvm-svn: 167660
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/disable-simplify-libcalls.ll [new file with mode: 0644]