summaryrefslogtreecommitdiff
path: root/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
commite5a36c1fc3c112fc3317d0b1a7fa0877072535d1 (patch)
tree0706f0a88d9e74b2ac4d3427e9e767b5f5cb53bb /lib/Target/Hexagon/RDFGraph.cpp
parenta22fe3ecdace16fd0ca073bfddea38776b819e69 (diff)
The real fix for post-r284255 failures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon/RDFGraph.cpp')
-rw-r--r--lib/Target/Hexagon/RDFGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Hexagon/RDFGraph.cpp b/lib/Target/Hexagon/RDFGraph.cpp
index 746a55ef933..f25fcf72065 100644
--- a/lib/Target/Hexagon/RDFGraph.cpp
+++ b/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);
}