OSDN Git Service

The transform that tries to turn calls to bitcast functions into
authorDuncan Sands <baldrick@free.fr>
Sun, 6 Jan 2008 18:27:01 +0000 (18:27 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 6 Jan 2008 18:27:01 +0000 (18:27 +0000)
commitad9a9e15595bc9d5ba1ed752caf8572957f77a3d
tree1ff466f71bdde8cc209d51f581e13dc1654c7b10
parenta9d0c9dc58855a5f01dcc5c85c89fd3fc737d3e8
The transform that tries to turn calls to bitcast functions into
direct calls bails out unless caller and callee have essentially
equivalent parameter attributes.  This is illogical - the callee's
attributes should be of no relevance here.  Rework the logic, which
incidentally fixes a crash when removed arguments have attributes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45658 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ParameterAttributes.h
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/VMCore/ParameterAttributes.cpp
lib/VMCore/Verifier.cpp
test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll [new file with mode: 0644]