For attribute sets, the return index is at 0, and arguments start at
- getParamAlignment adds the offset of 1, so we need to convert from
attribute index back to IR index.
Paths
| Differential D98117
GlobalISel: Fix off by one in finding explicit byval alignment ClosedPublic Authored by arsenm on Mar 6 2021, 8:49 AM.
Details
Diff Detail Event TimelineHerald added subscribers: kerbowa, hiraditya, rovka and 2 others. · View Herald TranscriptMar 6 2021, 8:49 AM arsenm added a child revision: D98148: GlobalISel: Fix marking byval arguments as immutable.Mar 7 2021, 11:32 AM This revision is now accepted and ready to land.Mar 8 2021, 6:47 AM
Revision Contents
Diff 328768 llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.ll
|