Skip to content

Commit a760840

Browse files
committed
florian's suggestion is a little simpler: we already know it's a phi
1 parent e9d0e62 commit a760840

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,10 +2292,7 @@ class LowerMatrixIntrinsics {
22922292

22932293
// finalizeLowering() may also insert instructions in some cases. The safe
22942294
// 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);
2295+
Builder.SetInsertPoint(Inst->getParent()->getFirstInsertionPt());
22992296
return PhiM;
23002297
}
23012298

0 commit comments

Comments
 (0)