Skip to content

fix(vpto): 暂时关闭 BiSheng 错误的 UB dead store 消除 - #1774

Closed
mouliangyu wants to merge 1 commit into
hw-native-sys:masterfrom
mouliangyu:codex/issue-1762-disable-ubdse
Closed

mouliangyu wants to merge 1 commit into
hw-native-sys:masterfrom
mouliangyu:codex/issue-1762-disable-ubdse

Conversation

@mouliangyu

@mouliangyu mouliangyu commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

问题与修复

BiSheng 的 UB dead store elimination 会把同址、互补 mask 的后一次向量写误认为完整覆盖前一次写,导致有效 lane 没有写入 UB(见 #1762)。VPTO 向量设备 LLVM 编译现默认传入 -mllvm -cce-vf-enable-ub-dead-st-elimination=false,暂时关闭该优化,直到 BiSheng 修复 mask 覆盖判断。

参数在共用的设备编译入口添加,覆盖 scheduler on/off/auto 和设备对象输出;cube 编译路径不受影响。扩展 lit 检查,验证不同 scheduler 模式下的 BiSheng 命令均携带该参数。

验证

  • changed-code 检查:0 错误、0 告警。
  • git diff --check:通过。
  • ObjectEmission.cpp 编译通过。新工作树首次全量构建耗时较长,未完成本地 lit;完整构建与测试由 PR CI 执行。

关闭 UBDSE 可能增加部分 UB store。代表性向量 kernel 的性能影响尚未量化。

Closes #1762

@mouliangyu

Copy link
Copy Markdown
Collaborator Author

目标平台应为 GitLab;此 GitHub PR 开错位置,现关闭。代码改动保留在提交 26efc78。

@mouliangyu mouliangyu closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bisheng Bug] BiSheng UBDSE 错误删除互补 mask 的 store,PTOAS 暂时关闭该优化

1 participant