diff options
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFCopy.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/RDFCopy.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFCopy.cpp b/llvm/lib/Target/Hexagon/RDFCopy.cpp index ea86ffba58f..3e222b9749c 100644 --- a/llvm/lib/Target/Hexagon/RDFCopy.cpp +++ b/llvm/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/MC/MCRegisterInfo.h" #include "llvm/Support/CommandLine.h" -#include "llvm/Target/TargetInstrInfo.h" +#include "llvm/Support/Debug.h" +#include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/raw_ostream.h" +#include "llvm/Target/TargetOpcodes.h" #include "llvm/Target/TargetRegisterInfo.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; } - |