File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
third_party/intel/lib/TritonIntelGPUTransforms Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ struct EncodingInfo {
77
77
* def-use chain in both directions starting from the Load Op. We store the
78
78
* values that need to be updated along with the new encoding in the
79
79
* `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
81
81
* the existing Load Op result layout for users of the load.
82
82
*/
83
83
void rewriteTensorLayoutsForOp (Attribute encoding, Operation *op) {
@@ -213,8 +213,7 @@ class TritonIntelGPUOptimizeBlockIOEncodingPass
213
213
}
214
214
break ;
215
215
}
216
- return isa<LoadOp>(v.getDefiningOp ()) ? cast<LoadOp>(v.getDefiningOp ())
217
- : nullptr ;
216
+ return dyn_cast<LoadOp>(v.getDefiningOp ());
218
217
};
219
218
220
219
LoadOp loadOp = isCandidateLoad (operand);
You can’t perform that action at this time.
0 commit comments