diff options
Diffstat (limited to 'lib/CodeGen/MachineBlockPlacement.cpp')
| -rw-r--r-- | lib/CodeGen/MachineBlockPlacement.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp index 21350df624e7..4fee9c4ea027 100644 --- a/lib/CodeGen/MachineBlockPlacement.cpp +++ b/lib/CodeGen/MachineBlockPlacement.cpp @@ -316,7 +316,7 @@ class MachineBlockPlacement : public MachineFunctionPass {    /// A type for a block filter set.    using BlockFilterSet = SmallSetVector<const MachineBasicBlock *, 16>; -  /// Pair struct containing basic block and taildup profitiability +  /// Pair struct containing basic block and taildup profitability    struct BlockAndTailDupResult {      MachineBasicBlock *BB;      bool ShouldTailDup; @@ -2497,7 +2497,8 @@ void MachineBlockPlacement::alignBlocks() {    // exclusively on the loop info here so that we can align backedges in    // unnatural CFGs and backedges that were introduced purely because of the    // loop rotations done during this layout pass. -  if (F->getFunction().optForSize()) +  if (F->getFunction().optForMinSize() || +      (F->getFunction().optForSize() && !TLI->alignLoopsWithOptSize()))      return;    BlockChain &FunctionChain = *BlockToChain[&F->front()];    if (FunctionChain.begin() == FunctionChain.end())  | 
