aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-16 15:51:49 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-16 15:51:49 +0000
commitece2c04d532d46405c085769d03173b392813eb3 (patch)
treef1736e3eb6bdff960456746e561a89c2b021122b /test/CFrontend
parent2c6fd8c7ceea0392635ce21038d2b7fc215d9116 (diff)
downloadexternal_llvm-ece2c04d532d46405c085769d03173b392813eb3.zip
external_llvm-ece2c04d532d46405c085769d03173b392813eb3.tar.gz
external_llvm-ece2c04d532d46405c085769d03173b392813eb3.tar.bz2
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
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2007-12-16-AsmNoUnwind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CFrontend/2007-12-16-AsmNoUnwind.c b/test/CFrontend/2007-12-16-AsmNoUnwind.c
new file mode 100644
index 0000000..b080e6a
--- /dev/null
+++ b/test/CFrontend/2007-12-16-AsmNoUnwind.c
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc %s -S -o - | grep nounwind
+
+void bar() { asm (""); }