Skip to content

Commit 8d4b19e

Browse files
authored
[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.
1 parent 41675fa commit 8d4b19e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ static bool isVMV0(const MCOperandInfo &MCOI) {
7979
}
8080

8181
bool RISCVVMV0Elimination::runOnMachineFunction(MachineFunction &MF) {
82-
if (skipFunction(MF.getFunction()))
83-
return false;
84-
8582
// Skip if the vector extension is not enabled.
8683
const RISCVSubtarget *ST = &MF.getSubtarget<RISCVSubtarget>();
8784
if (!ST->hasVInstructions())

0 commit comments

Comments
 (0)