forked from OSchip/llvm-project
GlobalISel: Remove redundant check for empty blocks
This commit is contained in:
parent
a0ec81f70d
commit
0bbf4bb8db
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue