We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a06681 commit ef94d8aCopy full SHA for ef94d8a
llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -1792,12 +1792,12 @@ MachineBasicBlock *MachineBlockPlacement::getFirstUnplacedBlock(
1792
1793
for (MachineFunction::iterator I = PrevUnplacedBlockIt, E = F->end(); I != E;
1794
++I) {
1795
- if (BlockToChain[&*I] != &PlacedChain) {
+ if (BlockChain *Chain = BlockToChain[&*I]; Chain != &PlacedChain) {
1796
PrevUnplacedBlockIt = I;
1797
// Now select the head of the chain to which the unplaced block belongs
1798
// as the block to place. This will force the entire chain to be placed,
1799
// and satisfies the requirements of merging chains.
1800
- return *BlockToChain[&*I]->begin();
+ return *Chain->begin();
1801
}
1802
1803
return nullptr;
0 commit comments