[llvm] [SPIR-V] Add pass to merge convergence region exit targets (PR #92531)

Ilia Diachkov via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 10:01:38 PDT 2024


================
@@ -1074,6 +1084,10 @@ void SPIRVEmitIntrinsics::processGlobalValue(GlobalVariable &GV,
 
 void SPIRVEmitIntrinsics::insertAssignPtrTypeIntrs(Instruction *I,
                                                    IRBuilder<> &B) {
+  // Don't assign types to LLVM tokens.
+  if (isConvergenceIntrinsic(I))
----------------
iliya-diyachkov wrote:

Maybe move this check to SPIRVEmitIntrinsics::runOnFunction(), where insertAssignPtrTypeIntrs() is called.

https://github.com/llvm/llvm-project/pull/92531


More information about the llvm-commits mailing list