[llvm] r258191 - [AArch64] Remove more dead code after r258093.
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 13:27:06 PST 2016
Author: mcrosier
Date: Tue Jan 19 15:27:05 2016
New Revision: 258191
URL: http://llvm.org/viewvc/llvm-project?rev=258191&view=rev
Log:
[AArch64] Remove more dead code after r258093.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp?rev=258191&r1=258190&r2=258191&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp Tue Jan 19 15:27:05 2016
@@ -1380,16 +1380,12 @@ MachineBasicBlock::iterator AArch64LoadS
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 AArch64LoadS
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;
More information about the llvm-commits
mailing list