[all-commits] [llvm/llvm-project] a36610: [CodeGen] Support --print-changed for legacy codeg...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 10 18:36:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a36610c9db6c05cccd6bed251f2b4df1730c1130
      https://github.com/llvm/llvm-project/commit/a36610c9db6c05cccd6bed251f2b4df1730c1130
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineFunctionPass.h
    M llvm/include/llvm/IR/PrintPasses.h
    M llvm/include/llvm/Pass.h
    M llvm/lib/CodeGen/MachineFunctionPass.cpp
    M llvm/lib/IR/LegacyPassManager.cpp
    M llvm/lib/IR/Pass.cpp
    M llvm/lib/IR/PrintPasses.cpp
    M llvm/test/Other/print-changed-machine.ll

  Log Message:
  -----------
  [CodeGen] Support --print-changed for legacy codegen IR passes (#202252)

--print-changed is only wired into MachineFunctionPass (
https://reviews.llvm.org/D133055), so the IR-level passes in the codegen
pipeline (atomic-expand, codegenprepare, etc.) are not reported.

Report them from FPPassManager/MPPassManager instead, via a new
Pass::printIRUnit hook that MachineFunctionPass overrides to print MIR.
Analyses are skipped, matching the new pass manager.

Aided by Claude Opus 4.8



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list