[llvm] [RISCV][NewPM] Add Missed Properties Modifier (PR #218107)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 23:29:39 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>



---
Full diff: https://github.com/llvm/llvm-project/pull/218107.diff


1 Files Affected:

- (modified) llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp (+1) 


``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp b/llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
index 96daec77b8e2b..66e5c5ede9ca2 100644
--- a/llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
+++ b/llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
@@ -838,6 +838,7 @@ bool RISCVVectorPeepholeLegacy::runOnMachineFunction(MachineFunction &MF) {
 PreservedAnalyses
 RISCVVectorPeepholePass::run(MachineFunction &MF,
                              MachineFunctionAnalysisManager &MFAM) {
+  MFPropsModifier _(*this, MF);
   bool Changed = RISCVVectorPeepholeImpl().run(MF);
   if (!Changed)
     return PreservedAnalyses::all();

``````````

</details>


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


More information about the llvm-commits mailing list