Disable InstCombine unsafe folding bitcasts of calls w/ varargs.
authorJim Grosbach <grosbach@apple.com>
Wed, 1 Feb 2012 00:08:17 +0000 (00:08 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 1 Feb 2012 00:08:17 +0000 (00:08 +0000)
commitd0e277d272d517ca1cda368267d199f0da7cad95
tree632f0e1cf045667d851f80f4ad3cc8472de1e8db
parent24dda217052b48373ed89d043a778aabb2f65080
Disable InstCombine unsafe folding bitcasts of calls w/ varargs.

Changing arguments from being passed as fixed to varargs is unsafe, as
the ABI may require they be handled differently (stack vs. register, for
example).

Remove two tests which rely on the bitcast being folded into the direct
call, which is exactly the transformation that's unsafe.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll [deleted file]
test/Transforms/InstCombine/call.ll