diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-10-14 19:06:25 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-10-14 19:06:25 +0000 |
commit | 775a20913d1547e0dad374bf44733c200afa8132 (patch) | |
tree | 0b77ad287ca7b4d5e3ecef5ad2ff967475fee334 /llvm/lib/Target | |
parent | 3b5dbf23a4025fc2c66fcb9dc662b148fa56a12e (diff) | |
download | bcm5719-llvm-775a20913d1547e0dad374bf44733c200afa8132.tar.gz bcm5719-llvm-775a20913d1547e0dad374bf44733c200afa8132.zip |
The real fix for post-r284255 failures
llvm-svn: 284264
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Target/Hexagon/RDFGraph.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp b/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp index 19731533556..1e42d648d7e 100644 --- a/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp +++ b/llvm/lib/Target/Hexagon/HexagonRDFOpt.cpp @@ -102,7 +102,6 @@ bool HexagonCP::interpretAsCopy(const MachineInstr *MI, EqualityMap &EM) { unsigned Opc = MI->getOpcode(); switch (Opc) { case Hexagon::A2_combinew: { - break; // FIXME const MachineOperand &DstOp = MI->getOperand(0); const MachineOperand &HiOp = MI->getOperand(1); const MachineOperand &LoOp = MI->getOperand(2); diff --git a/llvm/lib/Target/Hexagon/RDFGraph.cpp b/llvm/lib/Target/Hexagon/RDFGraph.cpp index 746a55ef933..f25fcf72065 100644 --- a/llvm/lib/Target/Hexagon/RDFGraph.cpp +++ b/llvm/lib/Target/Hexagon/RDFGraph.cpp @@ -1046,8 +1046,8 @@ void DataFlowGraph::build(unsigned Options) { RegisterRef DataFlowGraph::makeRegRef(unsigned Reg, unsigned Sub) const { assert(TargetRegisterInfo::isPhysicalRegister(Reg)); - assert(Sub == 0 && "Not expecting subregisters"); - // TODO handle subregisters just to see if LMI would work with it. + if (Sub != 0) + Reg = TRI.getSubReg(Reg, Sub); return RegisterRef(Reg); } |