mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
SrcDef is only written and never read. Remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f56138d4ae
commit
7becbc41ab
@ -295,7 +295,6 @@ bool PeepholeOptimizer::OptimizeBitcastInstr(MachineInstr *MI,
|
||||
if (!DefMI || !DefMI->getDesc().isBitcast())
|
||||
return false;
|
||||
|
||||
unsigned SrcDef = 0;
|
||||
unsigned SrcSrc = 0;
|
||||
NumDefs = DefMI->getDesc().getNumDefs();
|
||||
NumSrcs = DefMI->getDesc().getNumOperands() - NumDefs;
|
||||
@ -308,13 +307,13 @@ bool PeepholeOptimizer::OptimizeBitcastInstr(MachineInstr *MI,
|
||||
unsigned Reg = MO.getReg();
|
||||
if (!Reg)
|
||||
continue;
|
||||
if (MO.isDef())
|
||||
SrcDef = Reg;
|
||||
else if (SrcSrc)
|
||||
// Multiple sources?
|
||||
return false;
|
||||
else
|
||||
SrcSrc = Reg;
|
||||
if (!MO.isDef()) {
|
||||
if (SrcSrc)
|
||||
// Multiple sources?
|
||||
return false;
|
||||
else
|
||||
SrcSrc = Reg;
|
||||
}
|
||||
}
|
||||
|
||||
if (MRI->getRegClass(SrcSrc) != MRI->getRegClass(Def))
|
||||
|
Loading…
Reference in New Issue
Block a user