[PATCH] D98117: GlobalISel: Fix off by one in finding explicit byval alignment
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 6 08:49:03 PST 2021
arsenm created this revision.
arsenm added reviewers: aemerson, paquette, bogner, dsanders, aditya_nandakumar.
Herald added subscribers: kerbowa, hiraditya, rovka, nhaehnle, jvesely.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
For attribute sets, the return index is at 0, and arguments start at
1. getParamAlignment adds the offset of 1, so we need to convert from
attribute index back to IR index.
https://reviews.llvm.org/D98117
Files:
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98117.328768.patch
Type: text/x-patch
Size: 7158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210306/22e80d18/attachment.bin>
More information about the llvm-commits
mailing list