From ece2c04d532d46405c085769d03173b392813eb3 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 16 Dec 2007 15:51:49 +0000 Subject: 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 --- test/CFrontend/2007-12-16-AsmNoUnwind.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/CFrontend/2007-12-16-AsmNoUnwind.c (limited to 'test/CFrontend') 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 (""); } -- cgit v1.1