Skip to content

Commit 7a60088

Browse files
committed
Fix regressions
Signed-off-by: Tiotto, Ettore <[email protected]>
1 parent 3826a8b commit 7a60088

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

third_party/intel/lib/Analysis/AxisInfo.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,12 @@ class MakeTensorPtrOpAxisInfoVisitor final
10101010
getAxisInfo(triton::MakeTensorPtrOp op,
10111011
ArrayRef<const dataflow::Lattice<AxisInfo> *> operands) override {
10121012
LDBG("MakeTensorPtrOpAxisInfoVisitor: " << *op);
1013-
assert(op.getShape().size() == 2 && operands.size() == 7 &&
1014-
"MakeTensorPtrOp should have 2D shape");
1013+
1014+
// TODO: Extend to higher dimension tensor pointers.
1015+
if (op.getShape().size() != 2)
1016+
return AxisInfo();
1017+
1018+
assert(operands.size() == 7 && "MakeTensorPtrOp should have 2D shape");
10151019

10161020
AxisInfo ptrInfo = operands[0]->getValue();
10171021
AxisInfo shapeInfo0 = operands[1]->getValue();

0 commit comments

Comments
 (0)