[RISCV] Remove impossible TODO in RISCVRedundantCopyElimination. NFC
authorCraig Topper <craig.topper@sifive.com>
Sun, 21 Aug 2022 20:14:31 +0000 (13:14 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 21 Aug 2022 20:18:02 +0000 (13:18 -0700)
If there are multiple conditional branches we shouldn't do any
optimization.

llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp

index 3c4a60b..eaaa510 100644 (file)
@@ -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.