diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-04-17 07:34:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-17 07:34:38 -0700 |
commit | 8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f (patch) | |
tree | 8b26953044f5b004ecaadf150805b039e449ec9e | |
parent | 41675fa5b88dc703b3b1d96de668281582f21f3b (diff) | |
download | llvm-8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f.zip llvm-8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f.tar.gz llvm-8d4b19e3d4a8cee8899d5a293972aef48f9bdb7f.tar.bz2 |
[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.
-rw-r--r-- | llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp b/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp index 9270a5b..6dbae5b 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()) |