Home | History | Annotate | Download | only in GlobalDCE
      1 ; distilled from 255.vortex
      2 ; RUN: opt < %s -globaldce -S | FileCheck %s
      3 
      4 ; CHECK-NOT: testfunc
      5 
      6 declare i1 ()* @getfunc()
      7 
      8 define internal i1 @testfunc() {
      9         %F = call i1 ()* () @getfunc( )                ; <i1 ()*> [#uses=1]
     10         %c = icmp eq i1 ()* %F, @testfunc               ; <i1> [#uses=1]
     11         ret i1 %c
     12 }
     13 
     14