[llvm] [RISCV][NewPm] Fix Up PreRAExpandPseudo (PR #218105)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 23:15:48 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-risc-v
Author: Sam Elliott (lenary)
<details>
<summary>Changes</summary>
- Add missing MFPropsModifier
- Mark pass as required
---
Full diff: https://github.com/llvm/llvm-project/pull/218105.diff
2 Files Affected:
- (modified) llvm/lib/Target/RISCV/RISCV.h (+1-1)
- (modified) llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp (+1)
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCV.h b/llvm/lib/Target/RISCV/RISCV.h
index ecc459eb02a7e..e3ad34f9cae65 100644
--- a/llvm/lib/Target/RISCV/RISCV.h
+++ b/llvm/lib/Target/RISCV/RISCV.h
@@ -114,7 +114,7 @@ FunctionPass *createRISCVExpandPseudoPass();
void initializeRISCVExpandPseudoPass(PassRegistry &);
class RISCVPreRAExpandPseudoPass
- : public OptionalPassInfoMixin<RISCVPreRAExpandPseudoPass> {
+ : public RequiredPassInfoMixin<RISCVPreRAExpandPseudoPass> {
public:
PreservedAnalyses run(MachineFunction &MF,
MachineFunctionAnalysisManager &MFAM);
diff --git a/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp b/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
index b9cbc77249ca3..c26c7c669f363 100644
--- a/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
@@ -891,6 +891,7 @@ FunctionPass *createRISCVPreRAExpandPseudoLegacyPass() {
PreservedAnalyses
RISCVPreRAExpandPseudoPass::run(MachineFunction &MF,
MachineFunctionAnalysisManager &MFAM) {
+ MFPropsModifier _(*this, MF);
bool Changed = RISCVPreRAExpandPseudoImpl().run(MF);
if (!Changed)
return PreservedAnalyses::all();
``````````
</details>
https://github.com/llvm/llvm-project/pull/218105
More information about the llvm-commits
mailing list