1 ; RUN: opt < %s -globalopt -S | FileCheck %s
2 ; CHECK: call void @Actual
4 ; Check that a comparison does not prevent an indirect call from being made
5 ; direct. The global will still remain, but indirect call elim is still good.
7 @G = internal global void ()* null ; <void ()**> [#uses=2]
9 define internal void @Actual() {
14 store void ()* @Actual, void ()** @G
19 %FP = load void ()*, void ()** @G ; <void ()*> [#uses=2]
20 %CC = icmp eq void ()* %FP, null ; <i1> [#uses=1]
21 br i1 %CC, label %isNull, label %DoCall