[llvm] a992451 - [RISCV] Rename riscv-pre-ra-expand-pseudo (#218106)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 23:59:17 PDT 2026
Author: Aiden Grossman
Date: 2026-08-22T06:59:12Z
New Revision: a992451c9703a7d6b2dfba6297fae68dda2076f4
URL: https://github.com/llvm/llvm-project/commit/a992451c9703a7d6b2dfba6297fae68dda2076f4
DIFF: https://github.com/llvm/llvm-project/commit/a992451c9703a7d6b2dfba6297fae68dda2076f4.diff
LOG: [RISCV] Rename riscv-pre-ra-expand-pseudo (#218106)
>From riscv-prera-expand-psuedo. Makes the name more consistent with
other targets (e.g., AMDGPU uses pre-ra) and with our hyphenation in
general.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
llvm/lib/Target/RISCV/RISCVPassRegistry.def
llvm/test/CodeGen/RISCV/O1-newpm-pipeline.ll
llvm/test/CodeGen/RISCV/O3-newpm-pipeline.ll
llvm/test/CodeGen/RISCV/mir-target-flags.ll
llvm/test/CodeGen/RISCV/prera-expand-pseudo.mir
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp b/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
index c26c7c669f363..28c03dfe791f7 100644
--- a/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
@@ -878,7 +878,7 @@ bool RISCVPreRAExpandPseudoImpl::expandLoadTLSDescAddress(
INITIALIZE_PASS(RISCVExpandPseudo, "riscv-expand-pseudo",
RISCV_EXPAND_PSEUDO_NAME, false, false)
-INITIALIZE_PASS(RISCVPreRAExpandPseudoLegacy, "riscv-prera-expand-pseudo",
+INITIALIZE_PASS(RISCVPreRAExpandPseudoLegacy, "riscv-pre-ra-expand-pseudo",
RISCV_PRERA_EXPAND_PSEUDO_NAME, false, false)
namespace llvm {
diff --git a/llvm/lib/Target/RISCV/RISCVPassRegistry.def b/llvm/lib/Target/RISCV/RISCVPassRegistry.def
index 0b303aa256edc..cd3ebfe58894f 100644
--- a/llvm/lib/Target/RISCV/RISCVPassRegistry.def
+++ b/llvm/lib/Target/RISCV/RISCVPassRegistry.def
@@ -36,7 +36,7 @@ MACHINE_FUNCTION_PASS("riscv-asm-printer", RISCVAsmPrinterPass())
MACHINE_FUNCTION_PASS("riscv-fold-mem-offset", RISCVFoldMemOffsetPass())
MACHINE_FUNCTION_PASS("riscv-isel", RISCVISelDAGToDAGPass(*this, getOptLevel()))
MACHINE_FUNCTION_PASS("riscv-opt-w-instrs", RISCVOptWInstrsPass())
-MACHINE_FUNCTION_PASS("riscv-prera-expand-pseudo",
+MACHINE_FUNCTION_PASS("riscv-pre-ra-expand-pseudo",
RISCVPreRAExpandPseudoPass())
MACHINE_FUNCTION_PASS("riscv-vector-peephole", RISCVVectorPeepholePass())
MACHINE_FUNCTION_PASS("riscv-vl-optimizer", RISCVVLOptimizerPass())
diff --git a/llvm/test/CodeGen/RISCV/O1-newpm-pipeline.ll b/llvm/test/CodeGen/RISCV/O1-newpm-pipeline.ll
index f5f67d996f0b5..60efb06dd120e 100644
--- a/llvm/test/CodeGen/RISCV/O1-newpm-pipeline.ll
+++ b/llvm/test/CodeGen/RISCV/O1-newpm-pipeline.ll
@@ -60,7 +60,7 @@
; CHECK-NEXT: peephole-opt
; CHECK-NEXT: dead-mi-elimination
; RV64-NEXT: riscv-opt-w-instrs
-; CHECK-NEXT: riscv-prera-expand-pseudo
+; CHECK-NEXT: riscv-pre-ra-expand-pseudo
; CHECK-NEXT: detect-dead-lanes
; CHECK-NEXT: init-undef
; CHECK-NEXT: process-imp-defs
diff --git a/llvm/test/CodeGen/RISCV/O3-newpm-pipeline.ll b/llvm/test/CodeGen/RISCV/O3-newpm-pipeline.ll
index 7873d1db04108..e4c7c06e73796 100644
--- a/llvm/test/CodeGen/RISCV/O3-newpm-pipeline.ll
+++ b/llvm/test/CodeGen/RISCV/O3-newpm-pipeline.ll
@@ -60,7 +60,7 @@
; CHECK-NEXT: peephole-opt
; CHECK-NEXT: dead-mi-elimination
; RV64-NEXT: riscv-opt-w-instrs
-; CHECK-NEXT: riscv-prera-expand-pseudo
+; CHECK-NEXT: riscv-pre-ra-expand-pseudo
; CHECK-NEXT: detect-dead-lanes
; CHECK-NEXT: init-undef
; CHECK-NEXT: process-imp-defs
diff --git a/llvm/test/CodeGen/RISCV/mir-target-flags.ll b/llvm/test/CodeGen/RISCV/mir-target-flags.ll
index fdc0d894b2cae..d311f09a996ec 100644
--- a/llvm/test/CodeGen/RISCV/mir-target-flags.ll
+++ b/llvm/test/CodeGen/RISCV/mir-target-flags.ll
@@ -1,10 +1,10 @@
; RUN: llc -mtriple=riscv32 --code-model=small \
-; RUN: -stop-after riscv-prera-expand-pseudo %s -o %t.mir
+; RUN: -stop-after riscv-pre-ra-expand-pseudo %s -o %t.mir
; RUN: llc -mtriple=riscv32 -run-pass riscv-expand-pseudo %t.mir -o - | \
; RUN: FileCheck %s -check-prefix=RV32-SMALL
;
; RUN: llc -mtriple=riscv32 --code-model=medium --relocation-model=pic \
-; RUN: -stop-after riscv-prera-expand-pseudo %s -o %t.mir
+; RUN: -stop-after riscv-pre-ra-expand-pseudo %s -o %t.mir
; RUN: llc -mtriple=riscv32 -run-pass riscv-expand-pseudo %t.mir -o - | \
; RUN: FileCheck %s -check-prefix=RV32-MED
diff --git a/llvm/test/CodeGen/RISCV/prera-expand-pseudo.mir b/llvm/test/CodeGen/RISCV/prera-expand-pseudo.mir
index a5b0798022933..dc239a41373a4 100644
--- a/llvm/test/CodeGen/RISCV/prera-expand-pseudo.mir
+++ b/llvm/test/CodeGen/RISCV/prera-expand-pseudo.mir
@@ -1,11 +1,11 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6
-# RUN: llc -mtriple=riscv32 -run-pass=riscv-prera-expand-pseudo %s -o - \
+# RUN: llc -mtriple=riscv32 -run-pass=riscv-pre-ra-expand-pseudo %s -o - \
# RUN: | FileCheck %s --check-prefixes=RV32
-# RUN: llc -mtriple=riscv64 -run-pass=riscv-prera-expand-pseudo %s -o - \
+# RUN: llc -mtriple=riscv64 -run-pass=riscv-pre-ra-expand-pseudo %s -o - \
# RUN: | FileCheck %s --check-prefixes=RV64
-# RUN: llc -mtriple=riscv32 -passes=riscv-prera-expand-pseudo %s -o - \
+# RUN: llc -mtriple=riscv32 -passes=riscv-pre-ra-expand-pseudo %s -o - \
# RUN: | FileCheck %s --check-prefixes=RV32
-# RUN: llc -mtriple=riscv64 -passes=riscv-prera-expand-pseudo %s -o - \
+# RUN: llc -mtriple=riscv64 -passes=riscv-pre-ra-expand-pseudo %s -o - \
# RUN: | FileCheck %s --check-prefixes=RV64
--- |
More information about the llvm-commits
mailing list