[llvm-branch-commits] [llvm] [RISCV] Port Fold Memory Offset Pass to NewPM (PR #215672)

Aiden Grossman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 11 20:01:45 PDT 2026


================
@@ -74,12 +80,12 @@ class FoldableOffset {
 
 } // end anonymous namespace
 
-char RISCVFoldMemOffset::ID = 0;
-INITIALIZE_PASS(RISCVFoldMemOffset, DEBUG_TYPE, RISCV_FOLD_MEM_OFFSET_NAME,
-                false, false)
+char RISCVFoldMemOffsetLegacy::ID = 0;
+INITIALIZE_PASS(RISCVFoldMemOffsetLegacy, DEBUG_TYPE,
+                RISCV_FOLD_MEM_OFFSET_NAME, false, false)
 
 FunctionPass *llvm::createRISCVFoldMemOffsetPass() {
----------------
boomanaiden154 wrote:

I'm probably inconsistent with this in review, but I've been renaming these with a Legacy suffix too.

Although they should be getting deleted eventually so it probably doesn't matter...

https://github.com/llvm/llvm-project/pull/215672


More information about the llvm-branch-commits mailing list