Skip to content

Commit f628bc9

Browse files
Fix build failure after 91d58f5
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 56670d1 commit f628bc9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

third_party/intel/lib/Analysis/AxisInfo.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,8 +1314,7 @@ unsigned ModuleAxisInfoAnalysis::getContiguity(Value value) {
13141314
// FIXME: This is not as good as it could be, as we don't need to restrict
13151315
// the analysis to one dimension. We should determine contiguity on the
13161316
// flattenOuts() layout
1317-
auto linAttr =
1318-
gpu::toLinearEncoding(tensorTy.getEncoding(), tensorTy.getShape());
1317+
auto linAttr = gpu::toLinearEncoding(tensorTy);
13191318
auto order = linAttr.getOrder();
13201319
unsigned align = getAlignment(value);
13211320

@@ -1336,8 +1335,7 @@ unsigned ModuleAxisInfoAnalysis::getAlignment(Value value) {
13361335
auto *axisInfo = getAxisInfo(value);
13371336
if (!axisInfo)
13381337
return 1;
1339-
auto linAttr =
1340-
gpu::toLinearEncoding(tensorTy.getEncoding(), tensorTy.getShape());
1338+
auto linAttr = gpu::toLinearEncoding(tensorTy);
13411339
auto order = linAttr.getOrder();
13421340

13431341
// FIXME: should this be an assertion instead?
@@ -1378,8 +1376,7 @@ unsigned ModuleAxisInfoAnalysis::getMaskAlignment(Value mask) {
13781376
auto *axisInfo = getAxisInfo(mask);
13791377
if (!axisInfo)
13801378
return 1;
1381-
auto linAttr =
1382-
gpu::toLinearEncoding(tensorTy.getEncoding(), tensorTy.getShape());
1379+
auto linAttr = gpu::toLinearEncoding(tensorTy);
13831380

13841381
// FIXME: should this be an assertion instead?
13851382
// Temporarily added to avoid crashing on some tests.

0 commit comments

Comments
 (0)