[AArch64] Remove dead store. Found by gcc7.

llvm-svn: 286137
This commit is contained in:
Davide Italiano 2016-11-07 19:11:25 +00:00
parent 19679f97ed
commit 5df6066ec1
1 changed files with 3 additions and 6 deletions

View File

@ -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.