Chris Bieneman ee4d815008 [DX] Remove IntrNoMem from create handle intrinsic
The create handle intrinsic calls can't be removed, so it was incorrect
to mark them as IntrNoMem.
2022-08-02 16:57:22 -05:00

17 lines
478 B
LLVM

; RUN: opt %s -early-cse -S | FileCheck %s
define void @fn() {
entry:
%0 = tail call ptr @llvm.dx.create.handle(i8 1)
%1 = tail call ptr @llvm.dx.create.handle(i8 1)
ret void
}
; Function Attrs: mustprogress nounwind willreturn
declare ptr @llvm.dx.create.handle(i8) #0
attributes #0 = { mustprogress nounwind willreturn }
; CSE needs to leave this alone
; CHECK: %0 = tail call ptr @llvm.dx.create.handle(i8 1)
; CHECK: %1 = tail call ptr @llvm.dx.create.handle(i8 1)