From 0bbf4bb8db29bd97ae54fe741baebc3062be60d9 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 9 Aug 2020 17:28:15 -0400 Subject: [PATCH] GlobalISel: Remove redundant check for empty blocks --- llvm/lib/CodeGen/GlobalISel/Combiner.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/Combiner.cpp b/llvm/lib/CodeGen/GlobalISel/Combiner.cpp index b4562a5c6601..48f4c5b0f371 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;