[llvm] r246767 - [AArch64] Reuse MayLoad. NFC.
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 07:19:43 PDT 2015
Author: mcrosier
Date: Thu Sep 3 09:19:43 2015
New Revision: 246767
URL: http://llvm.org/viewvc/llvm-project?rev=246767&view=rev
Log:
[AArch64] Reuse MayLoad. 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=246767&r1=246766&r2=246767&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp Thu Sep 3 09:19:43 2015
@@ -657,7 +657,7 @@ AArch64LoadStoreOpt::findMatchingInsn(Ma
// first and the second alias with the first, we can combine the first
// into the second.
if (!ModifiedRegs[getLdStRegOp(FirstMI).getReg()] &&
- !(FirstMI->mayLoad() && UsedRegs[getLdStRegOp(FirstMI).getReg()]) &&
+ !(MayLoad && UsedRegs[getLdStRegOp(FirstMI).getReg()]) &&
!mayAlias(FirstMI, MemInsns, TII)) {
Flags.setMergeForward(true);
return MBBI;
More information about the llvm-commits
mailing list