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

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 23:28:59 PDT 2026


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

None

>From 2e6e8a2c563165b5944fdf4cf172c9e06e6b1ca2 Mon Sep 17 00:00:00 2001
From: Sam Elliott <aelliott at qti.qualcomm.com>
Date: Fri, 21 Aug 2026 23:28:31 -0700
Subject: [PATCH] [RISCV][NewPM] Add Missed Properties Modifier

---
 llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp | 1 +
 1 file changed, 1 insertion(+)

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();



More information about the llvm-commits mailing list