[llvm] r267173 - [Hexagon] Properly close live range in HexagonBlockRanges

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 10:27:23 PDT 2016


Author: kparzysz
Date: Fri Apr 22 12:27:22 2016
New Revision: 267173

URL: http://llvm.org/viewvc/llvm-project?rev=267173&view=rev
Log:
[Hexagon] Properly close live range in HexagonBlockRanges

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonBlockRanges.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonBlockRanges.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonBlockRanges.cpp?rev=267173&r1=267172&r2=267173&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonBlockRanges.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonBlockRanges.cpp Fri Apr 22 12:27:22 2016
@@ -330,7 +330,7 @@ void HexagonBlockRanges::computeInitialL
       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;
       }




More information about the llvm-commits mailing list