I noticed that the trampoline straightening transformation could
authorDuncan Sands <baldrick@free.fr>
Mon, 14 Jan 2008 19:52:09 +0000 (19:52 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 14 Jan 2008 19:52:09 +0000 (19:52 +0000)
commitb0c9b93bb4c591b1cec0491eec34f792cd3cf111
tree66cc20891cd0d42c7dc5913ded9f50d623af70b2
parent459525df1e003597077197b5f802bd5d9cd7d94c
I noticed that the trampoline straightening transformation could
drop attributes on varargs call arguments.  Also, it could generate
invalid IR if the transformed call already had the 'nest' attribute
somewhere (this can never happen for code coming from llvm-gcc,
but it's a theoretical possibility).  Fix both problems.

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