Skip to content

Commit ee85856

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [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.
2 parents f10f4d9 + 8d4b19e commit ee85856

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)