File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
third_party/intel/lib/Analysis Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1314,8 +1314,7 @@ unsigned ModuleAxisInfoAnalysis::getContiguity(Value value) {
1314
1314
// FIXME: This is not as good as it could be, as we don't need to restrict
1315
1315
// the analysis to one dimension. We should determine contiguity on the
1316
1316
// flattenOuts() layout
1317
- auto linAttr =
1318
- gpu::toLinearEncoding (tensorTy.getEncoding (), tensorTy.getShape ());
1317
+ auto linAttr = gpu::toLinearEncoding (tensorTy);
1319
1318
auto order = linAttr.getOrder ();
1320
1319
unsigned align = getAlignment (value);
1321
1320
@@ -1336,8 +1335,7 @@ unsigned ModuleAxisInfoAnalysis::getAlignment(Value value) {
1336
1335
auto *axisInfo = getAxisInfo (value);
1337
1336
if (!axisInfo)
1338
1337
return 1 ;
1339
- auto linAttr =
1340
- gpu::toLinearEncoding (tensorTy.getEncoding (), tensorTy.getShape ());
1338
+ auto linAttr = gpu::toLinearEncoding (tensorTy);
1341
1339
auto order = linAttr.getOrder ();
1342
1340
1343
1341
// FIXME: should this be an assertion instead?
@@ -1378,8 +1376,7 @@ unsigned ModuleAxisInfoAnalysis::getMaskAlignment(Value mask) {
1378
1376
auto *axisInfo = getAxisInfo (mask);
1379
1377
if (!axisInfo)
1380
1378
return 1 ;
1381
- auto linAttr =
1382
- gpu::toLinearEncoding (tensorTy.getEncoding (), tensorTy.getShape ());
1379
+ auto linAttr = gpu::toLinearEncoding (tensorTy);
1383
1380
1384
1381
// FIXME: should this be an assertion instead?
1385
1382
// Temporarily added to avoid crashing on some tests.
You can’t perform that action at this time.
0 commit comments