diff options
| author | 2019-06-23 21:36:31 +0000 | |
|---|---|---|
| committer | 2019-06-23 21:36:31 +0000 | |
| commit | 23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch) | |
| tree | f7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/lib/CodeGen/MachineBlockPlacement.cpp | |
| parent | sort previous; ok deraadt (diff) | |
| download | wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip | |
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/lib/CodeGen/MachineBlockPlacement.cpp')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/MachineBlockPlacement.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/gnu/llvm/lib/CodeGen/MachineBlockPlacement.cpp index 21350df624e..4fee9c4ea02 100644 --- a/gnu/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/gnu/llvm/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()) |
