Skip to content

Commit 49e4195

Browse files
committed
fixup typo, cleanup load cast
1 parent 5b84f6d commit 49e4195

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

third_party/intel/lib/TritonIntelGPUTransforms/OptimizeBlockIOEncoding.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct EncodingInfo {
7777
* def-use chain in both directions starting from the Load Op. We store the
7878
* values that need to be updated along with the new encoding in the
7979
* `valueToEncodingInfo` MapVector. After all value/encoding pairs have been
80-
* determined, we update the encoding for each value, adding aa conversion to
80+
* determined, we update the encoding for each value, adding a conversion to
8181
* the existing Load Op result layout for users of the load.
8282
*/
8383
void rewriteTensorLayoutsForOp(Attribute encoding, Operation *op) {
@@ -213,8 +213,7 @@ class TritonIntelGPUOptimizeBlockIOEncodingPass
213213
}
214214
break;
215215
}
216-
return isa<LoadOp>(v.getDefiningOp()) ? cast<LoadOp>(v.getDefiningOp())
217-
: nullptr;
216+
return dyn_cast<LoadOp>(v.getDefiningOp());
218217
};
219218

220219
LoadOp loadOp = isCandidateLoad(operand);

0 commit comments

Comments
 (0)