Skip to content

fix(vpto): combine reductions before scheduling - #1358

Merged
mouliangyu merged 1 commit into
hw-native-sys:mainfrom
mouliangyu:codex/move-combine-reductions-before-scheduler
Aug 27, 2026
Merged

fix(vpto): combine reductions before scheduling#1358
mouliangyu merged 1 commit into
hw-native-sys:mainfrom
mouliangyu:codex/move-combine-reductions-before-scheduler

Conversation

@mouliangyu

Copy link
Copy Markdown
Collaborator

Summary

Move VPTOCombineReductions before the optional VPTOScheduler in the VPTO emission pipeline.

Rationale

VPTOCombineReductions changes the physical reduction tree and therefore the MI instruction set and dependencies. Scheduling after the combine pass ensures the scheduler analyzes the final reduction form while retaining the pass prerequisite that mask simplification, LICM, and CSE have already stabilized VPTO producers.

Validation

  • git diff --check
  • ninja -C build-llvm19 tools/ptoas/obj.PTOASCompilerImplementation

Related context: the pass was previously left after scheduler when scheduler integration was added, which made scheduling observe the pre-combine reduction tree.

@mouliangyu
mouliangyu marked this pull request as ready for review August 27, 2026 01:31
@mouliangyu
mouliangyu merged commit 10883a8 into hw-native-sys:main Aug 27, 2026
14 of 15 checks passed
@mouliangyu
mouliangyu deleted the codex/move-combine-reductions-before-scheduler branch August 27, 2026 01:31
@reedhecre

Copy link
Copy Markdown

A3 板测完成(有跳过)

  • 触发方式:merged
  • 源码提交:10883a8e7e84
  • 结果汇总:OK 323 / FAIL 0 / SKIP 29
  • 日志:/home/zhongxuan/ptoas-board-monitor/runtime/logs/20260826_183305_merged_pr1358.log
  • 结果 TSV:/home/zhongxuan/ptoas-board-monitor/runtime/logs/20260826_183305_merged_pr1358.tsv

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.

2 participants