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 766bd6f commit eaa7b38Copy full SHA for eaa7b38
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -1462,9 +1462,12 @@ class LowerMatrixIntrinsics {
1462
if (!CanBeFlattened(Op))
1463
return;
1464
1465
- if (match(Op, m_BinOp()) && ShapeMap.find(Op) != ShapeMap.end()) {
1466
- ShapeMap[Op] = ShapeMap[Op].t();
1467
- return;
+ if (match(Op, m_BinOp())) {
+ auto It = ShapeMap.find(Op);
+ if (It != ShapeMap.end()) {
1468
+ It->second = It->second.t();
1469
+ return;
1470
+ }
1471
}
1472
1473
FusedInsts.insert(cast<Instruction>(Op));
0 commit comments