已开启
[MLIR][Transform] transform.legalize 的 CleanupExtractSlice 把旧 mask 转发给缩小后的 transfer_read,生成非法 IR #133
cactusBalll创建于 7 天前
7 天前 将 alexanderbill、li-yancheng、cf-zhao、eastb233、wangqiang95、kuenking111_admin、SegFault、wd-gitcode、chenzheng1030、gcw_LWQavIsb 设为负责人
7 天前 将 alexanderbill、li-yancheng、cf-zhao、eastb233、wangqiang95、kuenking111_admin、SegFault、wd-gitcode、chenzheng1030、gcw_LWQavIsb 设为负责人
7 天前 添加了label:sig/Compiler
openeuler-ci-bot
7 天前 评论:
7 天前 评论:
Welcome To openEuler Community
Hey @gcw_LWQavIsb , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: Compiler ,
and any of the maintainers: @SegFault, @alexanderbill, @cf-zhao, @chenzheng1030, @eastb233, @kuenking111_admin, @li-yancheng, @wangqiang95, @wd-gitcode ,
and any of the committers: @liyunfei33, @zhongyunde .


【缺陷描述】:请补充详细的缺陷问题现象描述
对合法 MLIR——带 mask 的
vector.transfer_read后接vector.extract_strided_slice——transform.legalize的 CleanupExtractSlice 模式生成的新 read 结果类型已缩小,但 mask 仍是原尺寸,IR 非法:transform.legalize失败:readOp.getMask()的形状对应原向量(vector<8xi1>),而newVectType是切片后的类型(vector<4xf32>);mask 形状必须与传输向量一致,生成的 op 无法通过验证缺陷关联提交:
【缺陷所属的os版本】
Ubuntu 22.04.3 LTS,缺陷位于编译器/MLIR 工具链本身,与操作系统版本无关。
【内核版本】
6.6.87.2-microsoft-standard-WSL2(uname -r)。缺陷与内核版本无关。
【缺陷所属软件及版本号】
LLVM 20.1.8
【环境信息】
编译选项:
CMAKE_BUILD_TYPE=RelWithDebInfo,LLVM_ENABLE_ASSERTIONS=ON,LLVM_ENABLE_PROJECTS="clang;mlir",LLVM_TARGETS_TO_BUILD="X86;AArch64"
COMMIT ID:35f464110c04e89bd0cab0e3fee4a70ec6ec2eb9
【问题复现步骤】
执行
mlir-opt test.mlir --transform-interpreter【实际结果】
【期望结果】
【其他相关附件信息】
【缺陷详情及分析指导参考链接】