diff options
Diffstat (limited to 'mlir/lib/Target/LLVMIR/ModuleImport.cpp')
-rw-r--r-- | mlir/lib/Target/LLVMIR/ModuleImport.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mlir/lib/Target/LLVMIR/ModuleImport.cpp b/mlir/lib/Target/LLVMIR/ModuleImport.cpp index 857e31b..d9891e3 100644 --- a/mlir/lib/Target/LLVMIR/ModuleImport.cpp +++ b/mlir/lib/Target/LLVMIR/ModuleImport.cpp @@ -2616,7 +2616,6 @@ static constexpr std::array kExplicitLLVMFuncOpAttributes{ StringLiteral("optnone"), StringLiteral("target-features"), StringLiteral("tune-cpu"), - StringLiteral("unsafe-fp-math"), StringLiteral("uwtable"), StringLiteral("vscale_range"), StringLiteral("willreturn"), @@ -2714,10 +2713,6 @@ void ModuleImport::processFunctionAttributes(llvm::Function *func, attr.isStringAttribute()) funcOp.setPreferVectorWidth(attr.getValueAsString()); - if (llvm::Attribute attr = func->getFnAttribute("unsafe-fp-math"); - attr.isStringAttribute()) - funcOp.setUnsafeFpMath(attr.getValueAsBool()); - if (llvm::Attribute attr = func->getFnAttribute("no-infs-fp-math"); attr.isStringAttribute()) funcOp.setNoInfsFpMath(attr.getValueAsBool()); |