[Mlir-commits] [llvm] [mlir] [IRBuilder] Remove insertion block (PR #234245)
Florian Hahn
llvmlistbot at llvm.org
Thu Oct 22 03:21:15 PDT 2026
================
@@ -188,7 +188,8 @@ struct ReplacementIRBuilder
: IRBuilder(
I->getIterator(), InstSimplifyFolder(DL),
IRBuilderCallbackInserter([this](Instruction *I) { addMD(I); })) {
- if (BB->getParent()->getAttributes().hasFnAttr(Attribute::StrictFP))
+ if (GetInsertBlock()->getParent()->getAttributes().hasFnAttr(
----------------
fhahn wrote:
nit: simpler to get the function from the instruction>
```suggestion
if (I->getFunction()>getAttributes().hasFnAttr(
```
https://github.com/llvm/llvm-project/pull/234245
More information about the Mlir-commits
mailing list