aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-02-09 15:59:57 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-02-09 15:59:57 +0000
commit5c6a66ce34eb1e7c82d88cc94c3e5ed8c8ac0c81 (patch)
tree9c6c2b41b78f6faf6afe4073b3f1da7f8035ec18 /llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
parent07f854e726f1b91c7ee5b9ed5f3ff303a40268d0 (diff)
downloadllvm-5c6a66ce34eb1e7c82d88cc94c3e5ed8c8ac0c81.zip
llvm-5c6a66ce34eb1e7c82d88cc94c3e5ed8c8ac0c81.tar.gz
llvm-5c6a66ce34eb1e7c82d88cc94c3e5ed8c8ac0c81.tar.bz2
[AArch64] Rename variable to improve readability. NFC.
llvm-svn: 260228
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index 2e5dfac..5700749 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -1022,8 +1022,8 @@ bool AArch64LoadStoreOpt::findMatchingStore(
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::findMatchingStore(
// 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::findMatchingStore(
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;