We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a84e48 commit bf6d10fCopy full SHA for bf6d10f
mlir/lib/Transform/AIRDependencyScheduleOpt.cpp
@@ -5614,12 +5614,8 @@ class AIROptimizeShimDMABDs
5614
signalPassFailure();
5615
return;
5616
}
5617
- int maxNumDims = -1; // -1 means unlimited.
5618
- const auto &targetModel = AIE::getTargetModel(*device);
5619
- if (isa<AIE::AIE1TargetModel>(targetModel))
5620
- maxNumDims = 1;
5621
- else if (isa<AIE::AIE2TargetModel>(targetModel))
5622
- maxNumDims = 4;
+ int maxNumDims =
+ isa<AIE::AIE1TargetModel>(AIE::getTargetModel(*device)) ? 1 : 4;
5623
// Preprocess the IR's L3 dma bds by applying loop splitting, fusion and
5624
// specialization patterns.
5625
air::applyAIRIsolateAsyncDmaLoopNestsPattern(&func.getRegion());
0 commit comments