[llvm] [RISCV] Port PreRA Pseudo Expansion to NewPM (PR #218069)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 21:32:49 PDT 2026
================
@@ -867,12 +878,26 @@ bool RISCVPreRAExpandPseudo::expandLoadTLSDescAddress(
INITIALIZE_PASS(RISCVExpandPseudo, "riscv-expand-pseudo",
RISCV_EXPAND_PSEUDO_NAME, false, false)
-INITIALIZE_PASS(RISCVPreRAExpandPseudo, "riscv-prera-expand-pseudo",
+INITIALIZE_PASS(RISCVPreRAExpandPseudoLegacy, "riscv-prera-expand-pseudo",
RISCV_PRERA_EXPAND_PSEUDO_NAME, false, false)
namespace llvm {
FunctionPass *createRISCVExpandPseudoPass() { return new RISCVExpandPseudo(); }
-FunctionPass *createRISCVPreRAExpandPseudoPass() { return new RISCVPreRAExpandPseudo(); }
+FunctionPass *createRISCVPreRAExpandPseudoLegacyPass() {
+ return new RISCVPreRAExpandPseudoLegacy();
+}
+
+PreservedAnalyses
+RISCVPreRAExpandPseudoPass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM) {
----------------
boomanaiden154 wrote:
We need a `MFPropsModifier` here or `getRequiredProperties` will never have an effect.
https://github.com/llvm/llvm-project/pull/218069
More information about the llvm-commits
mailing list