diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-06-10 20:49:18 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-06-10 20:49:18 +0000 |
commit | d1f6c840ee16a7ea0c9a8bd4aacfbc76a740316f (patch) | |
tree | 9ea616c7be5bf3f7a7d7d77dbe94da290f038806 /llvm/lib | |
parent | c5083c2ccf72c1d9984d7d777f4ca707e56f07ee (diff) | |
download | bcm5719-llvm-d1f6c840ee16a7ea0c9a8bd4aacfbc76a740316f.tar.gz bcm5719-llvm-d1f6c840ee16a7ea0c9a8bd4aacfbc76a740316f.zip |
[AArch64] Move comments closer to relevant check. NFC.
llvm-svn: 272430
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp index 179b540844a..37d20793183 100644 --- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp +++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp @@ -1247,10 +1247,6 @@ AArch64LoadStoreOpt::findMatchingInsn(MachineBasicBlock::iterator I, // check for +1/-1. Make sure to check the new instruction offset is // actually an immediate and not a symbolic reference destined for // a relocation. - // - // Pairwise instructions have a 7-bit signed offset field. Single insns - // have a 12-bit unsigned offset field. To be a valid combine, the - // final offset must be in range. unsigned MIBaseReg = getLdStBaseOp(MI).getReg(); int MIOffset = getLdStOffsetOp(MI).getImm(); bool MIIsUnscaled = TII->isUnscaledLdSt(MI); @@ -1285,8 +1281,10 @@ AArch64LoadStoreOpt::findMatchingInsn(MachineBasicBlock::iterator I, continue; } } else { - // If the resultant immediate offset of merging these instructions - // is out of range for a pairwise instruction, bail and keep looking. + // Pairwise instructions have a 7-bit signed offset field. Single + // insns have a 12-bit unsigned offset field. If the resultant + // immediate offset of merging these instructions is out of range for + // a pairwise instruction, bail and keep looking. if (!inBoundsForPair(IsUnscaled, MinOffset, OffsetStride)) { trackRegDefsUses(MI, ModifiedRegs, UsedRegs, TRI); MemInsns.push_back(MI); |