File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
third_party/intel/lib/TritonIntelGPUTransforms/Pipeliner Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 66#include " mlir/Interfaces/SideEffectInterfaces.h"
77#include " triton/Analysis/AxisInfo.h"
88#include " triton/Dialect/Triton/IR/Dialect.h"
9+ #include " llvm/Support/Casting.h"
910#include " llvm/Support/Debug.h"
1011
1112#define DEBUG_TYPE " tritonintelgpu-pipeline"
@@ -57,12 +58,8 @@ static ttg::DotOperandEncodingAttr getDotEncodingFromUser(Operation *user) {
5758 if (isa<ttg::SharedEncodingAttr>(tensorType.getEncoding ()))
5859 return allTransitiveUsesHaveDotEncoding (res);
5960
60- if (auto op = dyn_cast<ttg::ConvertLayoutOp>(user))
61- if (auto tensorType =
62- dyn_cast<RankedTensorType>(op->getResult (0 ).getType ()))
63- return dyn_cast<ttg::DotOperandEncodingAttr>(tensorType.getEncoding ());
64-
65- return nullptr ;
61+ return llvm::dyn_cast_or_null<ttg::DotOperandEncodingAttr>(
62+ tensorType.getEncoding ());
6663}
6764
6865// / If all the transitive uses of the given value are used by a convert to the
You can’t perform that action at this time.
0 commit comments