[llvm] 775a22e - [NFC] Remove unused variable `MF`
Hubert Tong via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 12 13:33:00 PDT 2022
Author: Hubert Tong
Date: 2022-06-12T16:31:55-04:00
New Revision: 775a22e32a71b1592bcc254c1cfcb037ac944aa6
URL: https://github.com/llvm/llvm-project/commit/775a22e32a71b1592bcc254c1cfcb037ac944aa6
DIFF: https://github.com/llvm/llvm-project/commit/775a22e32a71b1592bcc254c1cfcb037ac944aa6.diff
LOG: [NFC] Remove unused variable `MF`
https://reviews.llvm.org/D127583 removed the only use of this variable
and broke builds with warnings-as-errors.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index f5e43a1395b05..1c57a90c57f5b 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -1412,8 +1412,6 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
}
void RISCVInsertVSETVLI::insertReadVL(MachineBasicBlock &MBB) {
- const MachineFunction *MF = MBB.getParent();
-
for (auto I = MBB.begin(), E = MBB.end(); I != E;) {
MachineInstr &MI = *I++;
if (RISCV::isFaultFirstLoad(MI)) {
More information about the llvm-commits
mailing list