xref: /llvm-project/llvm/test/Transforms/EarlyCSE/DirectX/create_handle.ll (revision ac696ac4530fb3df626195e94e83649bf7114754)
1*ac696ac4SBjorn Pettersson; RUN: opt %s -passes=early-cse -S | FileCheck %s
2ee4d8150SChris Bieneman
3ee4d8150SChris Bienemandefine void @fn() {
4ee4d8150SChris Bienemanentry:
5ee4d8150SChris Bieneman  %0 = tail call ptr @llvm.dx.create.handle(i8 1)
6ee4d8150SChris Bieneman  %1 = tail call ptr @llvm.dx.create.handle(i8 1)
7ee4d8150SChris Bieneman  ret void
8ee4d8150SChris Bieneman}
9ee4d8150SChris Bieneman
10ee4d8150SChris Bieneman; Function Attrs: mustprogress nounwind willreturn
11ee4d8150SChris Bienemandeclare ptr @llvm.dx.create.handle(i8) #0
12ee4d8150SChris Bieneman
13ee4d8150SChris Bienemanattributes #0 = { mustprogress nounwind willreturn }
14ee4d8150SChris Bieneman
15ee4d8150SChris Bieneman; CSE needs to leave this alone
16ee4d8150SChris Bieneman; CHECK: %0 = tail call ptr @llvm.dx.create.handle(i8 1)
17ee4d8150SChris Bieneman; CHECK: %1 = tail call ptr @llvm.dx.create.handle(i8 1)