llvm-for-llvmta/test/Other/devirtualization-undef.ll

13 lines
274 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: opt -passes='devirt<2>(function(simplifycfg))' %s -S | FileCheck %s
; CHECK: unreachable
declare void @llvm.assume(i1 noundef)
declare i1 @bar(i8* nonnull dereferenceable(1))
define void @foo() {
%a = call i1 null()
call void @llvm.assume(i1 %a)
ret void
}