]> granicus.if.org Git - llvm/commit
GlobalISel: record correct stack usage for signext parameters.
authorTim Northover <tnorthover@apple.com>
Thu, 2 Mar 2017 15:34:18 +0000 (15:34 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 2 Mar 2017 15:34:18 +0000 (15:34 +0000)
commitd35d48c9b0f605892a18055d5a5bf52d57d022b3
treec4ee567b51e2790b43b62f74d0869909dc48129b
parent4f2d8229c1c2152df50669701f0fe44f5e412fa3
GlobalISel: record correct stack usage for signext parameters.

The CallingConv.td rules allocate 8 bytes for these kinds of arguments
on AAPCS targets, but we were only recording the smaller amount. The
difference is theoretical on AArch64 because we don't actually store
more than the smaller amount, but it's still much better to have these
two components in agreement.

Based on Diana Picus's ARM equivalent patch (where it matters a lot
more).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296754 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64CallLowering.cpp
test/CodeGen/AArch64/GlobalISel/arm64-callingconv.ll