mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -290,7 +290,6 @@ MachineInstr *LiveVariables::FindLastRefOrPartRef(unsigned Reg) {
|
|||||||
|
|
||||||
MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef;
|
MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef;
|
||||||
unsigned LastRefOrPartRefDist = DistanceMap[LastRefOrPartRef];
|
unsigned LastRefOrPartRefDist = DistanceMap[LastRefOrPartRef];
|
||||||
MachineInstr *LastPartDef = 0;
|
|
||||||
unsigned LastPartDefDist = 0;
|
unsigned LastPartDefDist = 0;
|
||||||
for (const unsigned *SubRegs = TRI->getSubRegisters(Reg);
|
for (const unsigned *SubRegs = TRI->getSubRegisters(Reg);
|
||||||
unsigned SubReg = *SubRegs; ++SubRegs) {
|
unsigned SubReg = *SubRegs; ++SubRegs) {
|
||||||
@@ -299,13 +298,9 @@ MachineInstr *LiveVariables::FindLastRefOrPartRef(unsigned Reg) {
|
|||||||
// There was a def of this sub-register in between. This is a partial
|
// There was a def of this sub-register in between. This is a partial
|
||||||
// def, keep track of the last one.
|
// def, keep track of the last one.
|
||||||
unsigned Dist = DistanceMap[Def];
|
unsigned Dist = DistanceMap[Def];
|
||||||
if (Dist > LastPartDefDist) {
|
if (Dist > LastPartDefDist)
|
||||||
LastPartDefDist = Dist;
|
LastPartDefDist = Dist;
|
||||||
LastPartDef = Def;
|
} else if (MachineInstr *Use = PhysRegUse[SubReg]) {
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (MachineInstr *Use = PhysRegUse[SubReg]) {
|
|
||||||
unsigned Dist = DistanceMap[Use];
|
unsigned Dist = DistanceMap[Use];
|
||||||
if (Dist > LastRefOrPartRefDist) {
|
if (Dist > LastRefOrPartRefDist) {
|
||||||
LastRefOrPartRefDist = Dist;
|
LastRefOrPartRefDist = Dist;
|
||||||
|
Reference in New Issue
Block a user