[llvm] r260228 - [AArch64] Rename variable to improve readability. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 07:59:58 PST 2016


Author: mcrosier
Date: Tue Feb  9 09:59:57 2016
New Revision: 260228

URL: http://llvm.org/viewvc/llvm-project?rev=260228&view=rev
Log:
[AArch64] Rename variable to improve readability. NFC.

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=260228&r1=260227&r2=260228&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp Tue Feb  9 09:59:57 2016
@@ -1022,8 +1022,8 @@ bool AArch64LoadStoreOpt::findMatchingSt
     MachineBasicBlock::iterator &StoreI) {
   MachineBasicBlock::iterator E = I->getParent()->begin();
   MachineBasicBlock::iterator MBBI = I;
-  MachineInstr *FirstMI = I;
-  unsigned BaseReg = getLdStBaseOp(FirstMI).getReg();
+  MachineInstr *LoadMI = I;
+  unsigned BaseReg = getLdStBaseOp(LoadMI).getReg();
 
   // Track which registers have been modified and used between the first insn
   // and the second insn.
@@ -1046,9 +1046,9 @@ bool AArch64LoadStoreOpt::findMatchingSt
     // store instruction writes and the stored value is not modified, we can
     // promote the load. Since we do not handle stores with pre-/post-index,
     // it's unnecessary to check if BaseReg is modified by the store itself.
-    if (MI->mayStore() && isMatchingStore(FirstMI, MI) &&
+    if (MI->mayStore() && isMatchingStore(LoadMI, MI) &&
         BaseReg == getLdStBaseOp(MI).getReg() &&
-        isLdOffsetInRangeOfSt(FirstMI, MI) &&
+        isLdOffsetInRangeOfSt(LoadMI, MI) &&
         !ModifiedRegs[getLdStRegOp(MI).getReg()]) {
       StoreI = MBBI;
       return true;
@@ -1066,7 +1066,7 @@ bool AArch64LoadStoreOpt::findMatchingSt
       return false;
 
     // If we encounter a store aliased with the load, return early.
-    if (MI->mayStore() && mayAlias(FirstMI, MI, TII))
+    if (MI->mayStore() && mayAlias(LoadMI, MI, TII))
       return false;
   }
   return false;




More information about the llvm-commits mailing list