summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-04-22 17:27:22 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-04-22 17:27:22 +0000
commitc06e79356f9d21daf274d2168e8e0af47bf0c017 (patch)
treebe8647add08250e99701baf437c15012548fd1f3 /llvm/lib
parent8851497f1951cba79ea3ba61820d41d37826d22b (diff)
downloadbcm5719-llvm-c06e79356f9d21daf274d2168e8e0af47bf0c017.tar.gz
bcm5719-llvm-c06e79356f9d21daf274d2168e8e0af47bf0c017.zip
[Hexagon] Properly close live range in HexagonBlockRanges
llvm-svn: 267173
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp b/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp
index 45c9856bd54..1f6d3625ea2 100644
--- a/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp
@@ -330,7 +330,7 @@ void HexagonBlockRanges::computeInitialLiveRanges(InstrIndexMap &IndexMap,
if (TargetRegisterInfo::isPhysicalRegister(R.Reg) && Reserved[R.Reg])
continue;
for (auto S : expandToSubRegs(R, MRI, TRI)) {
- if (LastDef[S] != IndexType::None)
+ if (LastDef[S] != IndexType::None || LastUse[S] != IndexType::None)
closeRange(S);
LastDef[S] = Index;
}
OpenPOWER on IntegriCloud