llvm-for-llvmta/test/Transforms/GVN/pr34908.ll

14 lines
319 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -gvn -S | FileCheck %s
define i1 @foo() {
; CHECK-LABEL: @foo(
; CHECK-NEXT: call void @llvm.assume(i1 undef)
; CHECK-NEXT: ret i1 undef
;
call void @llvm.assume(i1 undef)
ret i1 undef
}
declare void @llvm.assume(i1)