[PATCH] D116877: [GlobalISel] Fix a big-endian-related bug in CallLowering

Sheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 10 20:36:25 PST 2022


0x59616e marked an inline comment as done.
0x59616e added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/CallLowering.cpp:680
       // There should be Regs.size() ArgLocs per argument.
-      VA = ArgLocs[j + Part];
+      unsigned Idx = TLI->hasBigEndianPartOrdering(OrigVT, DL)
+                         ? NumParts - 1 - Part
----------------
arsenm wrote:
> Can hoist the TLI query out of the loop
Done. Thanks :)


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

https://reviews.llvm.org/D116877



More information about the llvm-commits mailing list