brintos

brintos / llvm-project-archived public Read only

0
0
Text · 295 B · 67b096d Raw
14 lines · plain
1; distilled from 255.vortex2; RUN: opt < %s -passes=globaldce -S | FileCheck %s3 4; CHECK-NOT: testfunc5 6declare ptr @getfunc()7 8define internal i1 @testfunc() {9  %F = call ptr @getfunc()                ; <ptr> [#uses=1]10  %c = icmp eq ptr %F, @testfunc          ; <i1> [#uses=1]11  ret i1 %c12}13 14