[all-commits] [llvm/llvm-project] 4c10a6: [RISCV] Merge SExtWRemoval and StripWSuffix into a...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Mar 29 15:17:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c10a6122edf62bea81d93860839fbbca844cdc5
      https://github.com/llvm/llvm-project/commit/4c10a6122edf62bea81d93860839fbbca844cdc5
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/CMakeLists.txt
    M llvm/lib/Target/RISCV/RISCV.h
    A llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp
    R llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
    R llvm/lib/Target/RISCV/RISCVStripWSuffix.cpp
    M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
    M llvm/test/CodeGen/RISCV/O3-pipeline.ll

  Log Message:
  -----------
  [RISCV] Merge SExtWRemoval and StripWSuffix into a single pass.

These run together in the pipeline and are the only users of
TII.hasAllWUsers. Merging them will allow us to move hasAllWUsers
back from TII.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D147173


  Commit: 3d7fa6dc7cb0b4f6a52500e52faa360cb95f1406
      https://github.com/llvm/llvm-project/commit/3d7fa6dc7cb0b4f6a52500e52faa360cb95f1406
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h
    M llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp

  Log Message:
  -----------
  [RISCV] Move allWUsers from RISCVInstrInfo to RISCVOptWInstrs.

It was only in RISCVInstrInfo because it was used by 2 passes, but those
passes have been merged in D147173.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D147174


Compare: https://github.com/llvm/llvm-project/compare/a7005d7813b3...3d7fa6dc7cb0


More information about the All-commits mailing list