Move a DenseMap's declaration outside of a loop, and just call
[oota-llvm.git] / test / Transforms / GlobalDCE / 2003-07-01-SelfReference.ll
index d9f6db24837f99693d9537e4ae48e00514fb97d9..c6c51df94cf3beb21e098021bc5ec2d1e2e04126 100644 (file)
@@ -1,11 +1,11 @@
 ; distilled from 255.vortex
-; RUN: as < %s | opt -globaldce | dis | not grep testfunc
+; RUN: llvm-as < %s | opt -globaldce | llvm-dis | not grep testfunc
 
-implementation
+declare i1 ()* @getfunc()
 
-declare bool()* %getfunc()
-internal bool %testfunc() {
-       %F = call bool()*()* %getfunc()
-       %c = seteq bool()* %F, %testfunc
-       ret bool %c
+define internal i1 @testfunc() {
+        %F = call i1 ()* ()* @getfunc( )                ; <i1 ()*> [#uses=1]
+        %c = icmp eq i1 ()* %F, @testfunc               ; <i1> [#uses=1]
+        ret i1 %c
 }
+