diff options
| author | Chad Rosier <mcrosier@codeaurora.org> | 2016-01-19 21:27:05 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-01-19 21:27:05 +0000 |
| commit | b11c82d3e2ca91e5eea011150ac1ea96f4c4d965 (patch) | |
| tree | 69ec0021266ac3d0c9d91468e36f4bb0eaf6430d | |
| parent | 4e41694538ca8b0ca825fed8ee9312fb15177e21 (diff) | |
| download | bcm5719-llvm-b11c82d3e2ca91e5eea011150ac1ea96f4c4d965.tar.gz bcm5719-llvm-b11c82d3e2ca91e5eea011150ac1ea96f4c4d965.zip | |
[AArch64] Remove more dead code after r258093.
llvm-svn: 258191
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp index be62459ecf5..8a3103cc15d 100644 --- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp +++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp @@ -1380,16 +1380,12 @@ MachineBasicBlock::iterator AArch64LoadStoreOpt::findMatchingUpdateInsnForward( ModifiedRegs.resize(TRI->getNumRegs()); UsedRegs.resize(TRI->getNumRegs()); ++MBBI; - for (unsigned Count = 0; MBBI != E; ++MBBI) { + for (; MBBI != E; ++MBBI) { MachineInstr *MI = MBBI; - // Skip DBG_VALUE instructions. Otherwise debug info can affect the - // optimization by changing how far we scan. + // Skip DBG_VALUE instructions. if (MI->isDebugValue()) continue; - // Now that we know this is a real instruction, count it. - ++Count; - // If we found a match, return it. if (isMatchingUpdateInsn(I, MI, BaseReg, UnscaledOffset)) return MBBI; @@ -1434,16 +1430,12 @@ MachineBasicBlock::iterator AArch64LoadStoreOpt::findMatchingUpdateInsnBackward( ModifiedRegs.resize(TRI->getNumRegs()); UsedRegs.resize(TRI->getNumRegs()); --MBBI; - for (unsigned Count = 0; MBBI != B; --MBBI) { + for (; MBBI != B; --MBBI) { MachineInstr *MI = MBBI; - // Skip DBG_VALUE instructions. Otherwise debug info can affect the - // optimization by changing how far we scan. + // Skip DBG_VALUE instructions. if (MI->isDebugValue()) continue; - // Now that we know this is a real instruction, count it. - ++Count; - // If we found a match, return it. if (isMatchingUpdateInsn(I, MI, BaseReg, Offset)) return MBBI; |

