Make instcombine promote inline asm calls to 'nounwind'
authorDuncan Sands <baldrick@free.fr>
Sun, 16 Dec 2007 15:51:49 +0000 (15:51 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 16 Dec 2007 15:51:49 +0000 (15:51 +0000)
commitece2c04d532d46405c085769d03173b392813eb3
treef1736e3eb6bdff960456746e561a89c2b021122b
parent2c6fd8c7ceea0392635ce21038d2b7fc215d9116
Make instcombine promote inline asm calls to 'nounwind'
calls.  Remove special casing of inline asm from the
inliner.  There is a potential problem: the verifier
rejects invokes of inline asm (not sure why).  If an
asm call is not marked "nounwind" in some .ll, and
instcombine is not run, but the inliner is run, then
an illegal module will be created.  This is bad but
I'm not sure what the best approach is.  I'm tempted
to remove the check in the verifier...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45073 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CallSite.h
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Utils/InlineFunction.cpp
lib/VMCore/Instructions.cpp
test/CFrontend/2007-12-16-AsmNoUnwind.c [new file with mode: 0644]
test/Transforms/Inline/2007-04-15-InlineEH.ll
test/Transforms/InstCombine/2007-12-16-AsmNoUnwind.ll [new file with mode: 0644]