[llvm] 8d4b19e - [RISCV] Remove skipFunction from RISCVVMV0Elimination. (#136080)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 07:34:41 PDT 2025
Author: Craig Topper
Date: 2025-04-17T07:34:38-07:00
New Revision: 8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f
URL: https://github.com/llvm/llvm-project/commit/8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f
DIFF: https://github.com/llvm/llvm-project/commit/8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f.diff
LOG: [RISCV] Remove skipFunction from RISCVVMV0Elimination. (#136080)
skipFunction disables the pass for functions with optnone attribute.
This pass is important to correct register allocation so I don't think
it should be disabled.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp b/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp
index 9270a5b98a142..6dbae5bf525db 100644
--- a/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp
+++ b/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp
@@ -79,9 +79,6 @@ static bool isVMV0(const MCOperandInfo &MCOI) {
}
bool RISCVVMV0Elimination::runOnMachineFunction(MachineFunction &MF) {
- if (skipFunction(MF.getFunction()))
- return false;
-
// Skip if the vector extension is not enabled.
const RISCVSubtarget *ST = &MF.getSubtarget<RISCVSubtarget>();
if (!ST->hasVInstructions())
More information about the llvm-commits
mailing list