File tree 2 files changed +5
-5
lines changed
Conversion/TritonToTritonGPU
Dialect/TritonGPU/Transforms 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -729,8 +729,8 @@ struct SCFForPattern : public OpConversionPattern<scf::ForOp> {
729
729
ConversionPatternRewriter &rewriter) const override {
730
730
auto newOp =
731
731
cast<scf::ForOp>(rewriter.cloneWithoutRegions (*op.getOperation ()));
732
- rewriter.inlineRegionBefore (op.getLoopBody (), newOp.getLoopBody (),
733
- newOp.getLoopBody ().end ());
732
+ rewriter.inlineRegionBefore (op.getRegion (), newOp.getRegion (),
733
+ newOp.getRegion ().end ());
734
734
735
735
// Now, update all the types.
736
736
@@ -739,7 +739,7 @@ struct SCFForPattern : public OpConversionPattern<scf::ForOp> {
739
739
// The entry block may have a special conversion if `entryConversion` is
740
740
// provided. On success, the new entry block to the region is returned for
741
741
// convenience. Otherwise, failure is returned.
742
- if (failed (rewriter.convertRegionTypes (&newOp.getLoopBody (),
742
+ if (failed (rewriter.convertRegionTypes (&newOp.getRegion (),
743
743
*getTypeConverter ()))) {
744
744
return rewriter.notifyMatchFailure (op, " could not convert body types" );
745
745
}
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ LogicalResult LoopPipeliner::collectOps(SetVector<Operation *> &ops) {
347
347
void LoopPipeliner::collectValueDep (Value v, int stage,
348
348
SetVector<Value> &deps) {
349
349
// Loop-invariant value, skip
350
- if (v.getParentRegion () != &forOp.getLoopBody ())
350
+ if (v.getParentRegion () != &forOp.getRegion ())
351
351
return ;
352
352
353
353
// Since we only need to peel the loop numStages-1 times, don't worry
@@ -671,7 +671,7 @@ void LoopPipeliner::createBufferTypes() {
671
671
}
672
672
673
673
void LoopPipeliner::createOrderedDeps () {
674
- for (Operation &op : forOp.getLoopBody (). front ()) {
674
+ for (Operation &op : * forOp.getBody ()) {
675
675
if (depOps.contains (&op))
676
676
orderedDeps.push_back (&op);
677
677
else if (op.getNumResults () > 0 && validLoads.contains (op.getResult (0 )))
You can’t perform that action at this time.
0 commit comments