[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:02:20 PDT 2024


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

The same suggestion to move to SPIRVEmitIntrinsics::runOnFunction().

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


More information about the llvm-commits mailing list