[clang] [clang][SPIR-V] Always add convervence intrinsics (PR #88918)
Nathan Gauër via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 17 05:13:54 PDT 2024
================
@@ -1109,6 +1124,10 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S,
llvm::BasicBlock *CondBlock = CondDest.getBlock();
EmitBlock(CondBlock);
+ if (getTarget().getTriple().isSPIRVLogical())
----------------
Keenuts wrote:
Changed those for a module-level function which hides the target specific bit behind a more generic check.
Let me know if that's not what you had in mind!
https://github.com/llvm/llvm-project/pull/88918
More information about the cfe-commits
mailing list