mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 04:35:43 +00:00
[Hexagon] Properly close live range in HexagonBlockRanges
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
491fbf630f
commit
d12b34532a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user