diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:41:23 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:41:23 +0000 | 
| commit | 4a16efa3e43e35f0cc9efe3a67f620f0017c3d36 (patch) | |
| tree | 06099edc18d30894081a822b756f117cbe0b8207 /lib/CodeGen/MachineBlockPlacement.cpp | |
| parent | 482e7bddf617ae804dc47133cb07eb4aa81e45de (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/MachineBlockPlacement.cpp')
| -rw-r--r-- | lib/CodeGen/MachineBlockPlacement.cpp | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp index cd3f19944e46..cd948e24a6b2 100644 --- a/lib/CodeGen/MachineBlockPlacement.cpp +++ b/lib/CodeGen/MachineBlockPlacement.cpp @@ -26,6 +26,11 @@  //===----------------------------------------------------------------------===//  #define DEBUG_TYPE "block-placement2" +#include "llvm/CodeGen/Passes.h" +#include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallPtrSet.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/Statistic.h"  #include "llvm/CodeGen/MachineBasicBlock.h"  #include "llvm/CodeGen/MachineBlockFrequencyInfo.h"  #include "llvm/CodeGen/MachineBranchProbabilityInfo.h" @@ -33,13 +38,8 @@  #include "llvm/CodeGen/MachineFunctionPass.h"  #include "llvm/CodeGen/MachineLoopInfo.h"  #include "llvm/CodeGen/MachineModuleInfo.h" -#include "llvm/CodeGen/Passes.h"  #include "llvm/Support/Allocator.h"  #include "llvm/Support/Debug.h" -#include "llvm/ADT/DenseMap.h" -#include "llvm/ADT/SmallPtrSet.h" -#include "llvm/ADT/SmallVector.h" -#include "llvm/ADT/Statistic.h"  #include "llvm/Target/TargetInstrInfo.h"  #include "llvm/Target/TargetLowering.h"  #include <algorithm> @@ -171,7 +171,7 @@ class MachineBlockPlacement : public MachineFunctionPass {    const TargetInstrInfo *TII;    /// \brief A handle to the target's lowering info. -  const TargetLowering *TLI; +  const TargetLoweringBase *TLI;    /// \brief Allocator and owner of BlockChain structures.    /// @@ -1013,8 +1013,8 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {    // 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()->getFnAttributes(). -        hasAttribute(Attributes::OptimizeForSize)) +  if (F.getFunction()->getAttributes(). +        hasAttribute(AttributeSet::FunctionIndex, Attribute::OptimizeForSize))      return;    unsigned Align = TLI->getPrefLoopAlignment();    if (!Align) @@ -1061,7 +1061,7 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {      }      // Align this block if the layout predecessor's edge into this block is -    // cold relative to the block. When this is true, othe predecessors make up +    // cold relative to the block. When this is true, other predecessors make up      // all of the hot entries into the block and thus alignment is likely to be      // important.      BranchProbability LayoutProb = MBPI->getEdgeProbability(LayoutPred, *BI);  | 
