diff options
Diffstat (limited to 'lib/Target/Hexagon/RDFCopy.cpp')
| -rw-r--r-- | lib/Target/Hexagon/RDFCopy.cpp | 25 | 
1 files changed, 15 insertions, 10 deletions
diff --git a/lib/Target/Hexagon/RDFCopy.cpp b/lib/Target/Hexagon/RDFCopy.cpp index ea86ffba58f6..f8c766ac972c 100644 --- a/lib/Target/Hexagon/RDFCopy.cpp +++ b/lib/Target/Hexagon/RDFCopy.cpp @@ -1,4 +1,4 @@ -//===--- RDFCopy.cpp ------------------------------------------------------===// +//===- RDFCopy.cpp --------------------------------------------------------===//  //  //                     The LLVM Compiler Infrastructure  // @@ -8,17 +8,27 @@  //===----------------------------------------------------------------------===//  //  // RDF-based copy propagation. +// +//===----------------------------------------------------------------------===//  #include "RDFCopy.h"  #include "RDFGraph.h"  #include "RDFLiveness.h" -#include "llvm/CodeGen/MachineBasicBlock.h" +#include "RDFRegisters.h"  #include "llvm/CodeGen/MachineDominators.h"  #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/CodeGen/MachineRegisterInfo.h" +#include "llvm/CodeGen/MachineOperand.h" +#include "llvm/CodeGen/TargetOpcodes.h" +#include "llvm/CodeGen/TargetRegisterInfo.h" +#include "llvm/MC/MCRegisterInfo.h"  #include "llvm/Support/CommandLine.h" -#include "llvm/Target/TargetInstrInfo.h" -#include "llvm/Target/TargetRegisterInfo.h" +#include "llvm/Support/Debug.h" +#include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/raw_ostream.h" +#include <cassert> +#include <cstdint> +#include <utility> +  using namespace llvm;  using namespace rdf; @@ -50,13 +60,11 @@ bool CopyPropagation::interpretAsCopy(const MachineInstr *MI, EqualityMap &EM) {    return false;  } -  void CopyPropagation::recordCopy(NodeAddr<StmtNode*> SA, EqualityMap &EM) {    CopyMap.insert(std::make_pair(SA.Id, EM));    Copies.push_back(SA.Id);  } -  bool CopyPropagation::scanBlock(MachineBasicBlock *B) {    bool Changed = false;    NodeAddr<BlockNode*> BA = DFG.findBlock(B); @@ -77,7 +85,6 @@ bool CopyPropagation::scanBlock(MachineBasicBlock *B) {    return Changed;  } -  NodeId CopyPropagation::getLocalReachingDef(RegisterRef RefRR,        NodeAddr<InstrNode*> IA) {    NodeAddr<RefNode*> RA = L.getNearestAliasedRef(RefRR, IA); @@ -91,7 +98,6 @@ NodeId CopyPropagation::getLocalReachingDef(RegisterRef RefRR,    return 0;  } -  bool CopyPropagation::run() {    scanBlock(&DFG.getMF().front()); @@ -205,4 +211,3 @@ bool CopyPropagation::run() {    return Changed;  } -  | 
