GlobalISel: Remove redundant check for empty blocks
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 9 Aug 2020 21:28:15 +0000 (17:28 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 10 Aug 2020 12:46:30 +0000 (08:46 -0400)
llvm/lib/CodeGen/GlobalISel/Combiner.cpp

index b4562a5..48f4c5b 100644 (file)
@@ -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;