summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/RDFGraph.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-10-14 19:06:25 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-10-14 19:06:25 +0000
commit775a20913d1547e0dad374bf44733c200afa8132 (patch)
tree0b77ad287ca7b4d5e3ecef5ad2ff967475fee334 /llvm/lib/Target/Hexagon/RDFGraph.cpp
parent3b5dbf23a4025fc2c66fcb9dc662b148fa56a12e (diff)
downloadbcm5719-llvm-775a20913d1547e0dad374bf44733c200afa8132.tar.gz
bcm5719-llvm-775a20913d1547e0dad374bf44733c200afa8132.zip
The real fix for post-r284255 failures
llvm-svn: 284264
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFGraph.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/RDFGraph.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
OpenPOWER on IntegriCloud