diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-08-01 21:20:10 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-08-01 21:20:10 +0000 |
commit | 52889219effe9cb3646b921a1dec74d4e139ee7d (patch) | |
tree | 4341d268a416063561cce73912e1e50284a5ccf0 /llvm/lib/Target/Hexagon/RDFCopy.cpp | |
parent | d4e03d59cb23b9639096264acf8e973589b4f5ad (diff) | |
download | bcm5719-llvm-52889219effe9cb3646b921a1dec74d4e139ee7d.tar.gz bcm5719-llvm-52889219effe9cb3646b921a1dec74d4e139ee7d.zip |
[Hexagon] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 309746
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; } - |