24 lines · plain
1; RUN: opt < %s -passes='function(instcombine),always-inline' -S | FileCheck %s2 3define internal void @foo(ptr) alwaysinline {4 ret void5}6 7define void @bar() noinline noreturn {8 unreachable9}10 11define void @test() {12 br i1 false, label %then, label %else13 14then:15 call void @bar()16 unreachable17 18else:19 ; CHECK-NOT: call20 call void @foo (ptr null)21 ret void22}23 24