[Mlir-commits] [mlir] [mlir] Add optimization attrs for gpu-to-llvmspv function declarations (PR #99301)
Victor Perez
llvmlistbot at llvm.org
Thu Jul 18 01:10:34 PDT 2024
================
@@ -53,6 +52,17 @@ static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn(Operation *symbolTable,
symbolTable->getLoc(), name,
LLVM::LLVMFunctionType::get(resultType, paramTypes));
func.setCConv(LLVM::cconv::CConv::SPIR_FUNC);
+ func.setNoUnwind(true);
+ func.setWillReturn(true);
----------------
victor-eds wrote:
You're actually right. I wasn't aware `willreturn` took UB into account. Feel free to add back.
https://github.com/llvm/llvm-project/pull/99301
More information about the Mlir-commits
mailing list