[llvm] [AArch64] New subtarget features to control ldp and stp formation, fo… (PR #66098)

Manos Anagnostakis via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 14:37:47 PDT 2023


================
@@ -2136,6 +2136,18 @@ bool AArch64LoadStoreOpt::tryToPairLdStInst(MachineBasicBlock::iterator &MBBI) {
   if (!TII->isCandidateToMergeOrPair(MI))
     return false;
 
+  // Fetch the memoperand of the load/store that is a candidate for
+  // combination.
+  MachineMemOperand *memOp = MBBI->memoperands().data()[0];
----------------
manosanaggh wrote:

Well, I thought that that way I could get the memoperand directly in a single line of code without needing to ask if its a load or store and have to choose between the first or the second one (general operand) respectively.

https://github.com/llvm/llvm-project/pull/66098


More information about the llvm-commits mailing list