git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179355
91177308-0d34-0410-b5e6-
96231b3b80d8
TLI = F.getTarget().getTargetLowering();
assert(BlockToChain.empty());
TLI = F.getTarget().getTargetLowering();
assert(BlockToChain.empty());
- if (AlignAllBlock) {
- // Align all of the blocks in the function to a specific alignment.
- for (MachineFunction::iterator FI = F.begin(), FE = F.end();
- FI != FE; ++FI)
- FI->setAlignment(AlignAllBlock);
- return true;
- }
-
buildCFGChains(F);
BlockToChain.clear();
ChainAllocator.DestroyAll();
buildCFGChains(F);
BlockToChain.clear();
ChainAllocator.DestroyAll();
+ if (AlignAllBlock)
+ // Align all of the blocks in the function to a specific alignment.
+ for (MachineFunction::iterator FI = F.begin(), FE = F.end();
+ FI != FE; ++FI)
+ FI->setAlignment(AlignAllBlock);
+
// We always return true as we have no way to track whether the final order
// differs from the original order.
return true;
// We always return true as we have no way to track whether the final order
// differs from the original order.
return true;