forked from OSchip/llvm-project
[AArch64] Remove dead store. Found by gcc7.
llvm-svn: 286137
This commit is contained in:
parent
19679f97ed
commit
5df6066ec1
|
@ -575,15 +575,12 @@ AArch64LoadStoreOpt::mergeNarrowZeroStores(MachineBasicBlock::iterator I,
|
|||
MergeForward ? getLdStBaseOp(*MergeMI) : getLdStBaseOp(*I);
|
||||
|
||||
// Which register is Rt and which is Rt2 depends on the offset order.
|
||||
MachineInstr *RtMI, *Rt2MI;
|
||||
MachineInstr *RtMI;
|
||||
if (getLdStOffsetOp(*I).getImm() ==
|
||||
getLdStOffsetOp(*MergeMI).getImm() + OffsetStride) {
|
||||
getLdStOffsetOp(*MergeMI).getImm() + OffsetStride)
|
||||
RtMI = &*MergeMI;
|
||||
Rt2MI = &*I;
|
||||
} else {
|
||||
else
|
||||
RtMI = &*I;
|
||||
Rt2MI = &*MergeMI;
|
||||
}
|
||||
|
||||
int OffsetImm = getLdStOffsetOp(*RtMI).getImm();
|
||||
// Change the scaled offset from small to large type.
|
||||
|
|
Loading…
Reference in New Issue