From abce7acebd4c06c977bc4bd79170697f1122bc5e Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 21 Aug 2022 13:14:31 -0700 Subject: [PATCH] [RISCV] Remove impossible TODO in RISCVRedundantCopyElimination. NFC If there are multiple conditional branches we shouldn't do any optimization. --- llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp b/llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp index 3c4a60b..eaaa510 100644 --- a/llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp +++ b/llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp @@ -101,7 +101,6 @@ bool RISCVRedundantCopyElimination::optimizeBlock(MachineBasicBlock &MBB) { if (!CondBr->isTerminator()) return false; // If we found a branch with X0, stop searching and try to remove copies. - // TODO: Handle multiple branches with different registers. if (guaranteesZeroRegInBlock(*CondBr, MBB)) break; // If we reached the beginning of the basic block, give up. -- 2.7.4