[RISCV] Merge SExtWRemoval and StripWSuffix into a single pass.
authorCraig Topper <craig.topper@sifive.com>
Wed, 29 Mar 2023 21:59:20 +0000 (14:59 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 29 Mar 2023 22:00:47 +0000 (15:00 -0700)
commit4c10a6122edf62bea81d93860839fbbca844cdc5
treeb940e7a1b119fffc5ed9089ca919f59908c3cdf2
parenta7005d7813b392f6d1c749239089bbc5cd6e0c54
[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
llvm/lib/Target/RISCV/CMakeLists.txt
llvm/lib/Target/RISCV/RISCV.h
llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp [moved from llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp with 79% similarity]
llvm/lib/Target/RISCV/RISCVStripWSuffix.cpp [deleted file]
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/test/CodeGen/RISCV/O3-pipeline.ll