Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKEND] Fix crash in coalesce pass with blocked ptr (#3866)
The `setCoalescedEncoding` function can handle operations that have a 'mem access ptr' with type `RankedTensorType`: ``` void setCoalescedEncoding(ModuleAxisInfoAnalysis &axisInfoAnalysis, Operation *op, int numWarps, int threadsPerWarp, llvm::MapVector<Operation *, Attribute> &layoutMap) { Value ptr = getMemAccessPtr(op); auto refTensorType = cast<RankedTensorType>(ptr.getType()); ``` Therefore the caller in `runOnOperation` should avoid calling it when the 'mem access ptr' does not have `RankedTensorType` (otherwise the cast in the callee will fail). --------- Signed-off-by: Tiotto, Ettore <[email protected]>
- Loading branch information