From: Matt Arsenault Date: Sun, 9 Aug 2020 21:28:15 +0000 (-0400) Subject: GlobalISel: Remove redundant check for empty blocks X-Git-Tag: llvmorg-13-init~15215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bbf4bb8db29bd97ae54fe741baebc3062be60d9;p=platform%2Fupstream%2Fllvm.git GlobalISel: Remove redundant check for empty blocks --- diff --git a/llvm/lib/CodeGen/GlobalISel/Combiner.cpp b/llvm/lib/CodeGen/GlobalISel/Combiner.cpp index b4562a5..48f4c5b 100644 --- a/llvm/lib/CodeGen/GlobalISel/Combiner.cpp +++ b/llvm/lib/CodeGen/GlobalISel/Combiner.cpp @@ -130,8 +130,6 @@ bool Combiner::combineMachineInstrs(MachineFunction &MF, WrapperObserver.addObserver(CSEInfo); RAIIDelegateInstaller DelInstall(MF, &WrapperObserver); for (MachineBasicBlock *MBB : post_order(&MF)) { - if (MBB->empty()) - continue; for (auto MII = MBB->rbegin(), MIE = MBB->rend(); MII != MIE;) { MachineInstr *CurMI = &*MII; ++MII;