summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ADCE
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-05-06 06:49:50 +0000
committerDuncan Sands <baldrick@free.fr>2009-05-06 06:49:50 +0000
commit1efabaaa2ad2a90bb2fe7f79461353b5f1ea63e8 (patch)
tree719834c43dbeab5fa7413c1e2a259167fc6307b0 /llvm/test/Transforms/ADCE
parent51f57a419581f772fb06e4c27128e702373177d9 (diff)
downloadbcm5719-llvm-1efabaaa2ad2a90bb2fe7f79461353b5f1ea63e8.tar.gz
bcm5719-llvm-1efabaaa2ad2a90bb2fe7f79461353b5f1ea63e8.zip
Allow readonly functions to unwind exceptions. Teach
the optimizers about this. For example, a readonly function with no uses cannot be removed unless it is also marked nounwind. llvm-svn: 71071
Diffstat (limited to 'llvm/test/Transforms/ADCE')
-rw-r--r--llvm/test/Transforms/ADCE/dce_pure_call.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/ADCE/dce_pure_call.ll b/llvm/test/Transforms/ADCE/dce_pure_call.ll
index a7414e027ea..3935bf72b9c 100644
--- a/llvm/test/Transforms/ADCE/dce_pure_call.ll
+++ b/llvm/test/Transforms/ADCE/dce_pure_call.ll
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
-declare i32 @strlen(i8*) readonly
+declare i32 @strlen(i8*) readonly nounwind
define void @test() {
- call i32 @strlen( i8* null ) readonly ; <i32>:1 [#uses=0]
+ call i32 @strlen( i8* null ) ; <i32>:1 [#uses=0]
ret void
}
OpenPOWER on IntegriCloud