[clang] [clang][SPIR-V] Always add convervence intrinsics (PR #88918)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 17 03:00:14 PDT 2024


Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/88918 at github.com>


================
@@ -1109,6 +1124,10 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S,
   llvm::BasicBlock *CondBlock = CondDest.getBlock();
   EmitBlock(CondBlock);
 
+  if (getTarget().getTriple().isSPIRVLogical())
----------------
arsenm wrote:

None of these target checks have anything to do with the target. If you want to conditionally enable these for bringup, these should be hidden in an enableConvergenceTokenEmission or something predicate 

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


More information about the cfe-commits mailing list