change instcombine to not turn a call to non-varargs bitcast of
authorChris Lattner <sabre@nondot.org>
Thu, 24 Feb 2011 05:10:56 +0000 (05:10 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Feb 2011 05:10:56 +0000 (05:10 +0000)
commit091b1e3c74fee17e33aa87478ab07bfbba0a2f78
tree56b70a4c22cb24916260720809d1e1425a0143a4
parent7558e2e4153233289bc6841f6a85fd54035f293b
change instcombine to not turn a call to non-varargs bitcast of
function prototype into a call to a varargs prototype.  We do
allow the xform if we have a definition, but otherwise we don't
want to risk that we're changing the abi in a subtle way.  On
X86-64, for example, varargs require passing stuff in %al.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126363 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll [deleted file]
test/Transforms/InstCombine/call.ll