[PATCH] D73209: [AIX] Implement caller arguments passed in stack memory

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 09:46:33 PST 2020


sfertile accepted this revision.
sfertile added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:6990
+      // register.
+      if ((ValVT == MVT::f32 || ValVT == MVT::f64) && I != E &&
+          ArgLocs[I].isMemLoc() && ArgLocs[I].getValNo() == VA.getValNo())
----------------
cebowleratibm wrote:
> sfertile wrote:
> > Moving the increment of the index into the loop makes this a lot more complicated even though its a small change to the code. If we have to peek the next memloc then its unavoidable, but did we consider marking the memloc we want to skip as custom and having the normal memloc handling skip it?
> I can use the customMem to make it cleaner to skip over these.  I will use custom mem when the argument is also passed in FPR.  If the argument is only passed in memory, it will remain a regular memLoc.
👍 Thank you. I really  like this approach.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73209/new/

https://reviews.llvm.org/D73209





More information about the llvm-commits mailing list