| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
!2743 merge fix-normalize-vector into master [Vector] preserve strided layout when collapsing to 1D Created-by: Hu_JJN Commit-by: Hu_JJN Merged-by: ascend-robot Description: --- title: "[AscendNPU IR]:[Vector] 折叠到 1D 时保留 strided 布局" --- ## 描述 Description collapseAllDims 使用 MemRefType::get() 构建折叠后的 memref 类型,这会丢弃降秩子视图(rank-reduced subview)源缓冲区的 strided 布局和动态偏移量,从而生成无效的 collapse_shape,导致 verifier 报错。应改用 memref::CollapseShapeOp::computeCollapsedType 来保留这些属性,并通过 isGuaranteedCollapsible 拒绝非连续(non-contiguous)的 strided 源,以避免触发 computeCollapsedType 中的断言(assert)。 ## 类型 Category - [ ] Bug修复 Bugfix - [ ] 新功能 New feature - [ ] 代码风格更新(格式化,局部变量)Style changes - [ ] 重构(即不是新增功能,也不是修改bug的代码变动)Refactor - [ ] 构建过程或辅助工具的变动 Build-related - [ ] 文档内容更新 Docs ## Checklist - [ ] 我的代码遵循这个项目的代码风格 My code follows the project's code style - [ ] 我已经自己测试过我的代码 I have self-tested my code - [ ] 我已经更新了相应的文档 I have updated the relevant documentation - [ ] 我已经根据需要更新了对应的变更日志 I have updated the changelog as needed - [ ] 我已经在标题中正确使用了类型标签(例如:feat:, fix:)I have correctly used type labels in the title (e.g., feat:, fix:) See merge request: Ascend/AscendNPU-IR!2743 | 3 天前 | |
[Huawei][AscendNPU IR] migrate MaterializeVectorWriteToDestination from A5 Migrate the A5 Vector MaterializeVectorWriteToDestination pass, VectorTransforms build wiring, pass registration, and the corresponding lit test. A5 source commits: ca90b6e3b Initialize A5 AscendNPUIR; b6c2a3a1f fix missed transfer_write mask in materialize-vector-write-to-destination. A5 test commits: ca90b6e3b Initialize A5 AscendNPUIR; b6c2a3a1f fix missed transfer_write mask in materialize-vector-write-to-destination. Local adaptations: VectorTransforms links BiShengIRScopeUtils because the pass is gated on scope::utils::isManualVFScope; trim trailing whitespace from the imported lit test to satisfy diff checks. Verification: ninja -C build; build/bin/llvm-lit -sv bishengir/test/Dialect/Vector/materialize-vector-write-to-destination.mlir; build/bin/llvm-lit bishengir/test. Full lit has accepted baseline failure only: bishengir :: bishengir-compile/save-temps.mlir. | 1 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 天前 | ||
| 1 个月前 |