We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d0e62 commit a760840Copy full SHA for a760840
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -2292,10 +2292,7 @@ class LowerMatrixIntrinsics {
2292
2293
// finalizeLowering() may also insert instructions in some cases. The safe
2294
// place for those is at the end of the initial block of PHIs.
2295
- auto IP = Inst->getInsertionPointAfterDef();
2296
- assert(IP.has_value() &&
2297
- "expected to find a valid insertion point after the phi");
2298
- Builder.SetInsertPoint(*IP);
+ Builder.SetInsertPoint(Inst->getParent()->getFirstInsertionPt());
2299
return PhiM;
2300
}
2301
0 commit comments