diff options
author | Jonas Paulsson <paulson1@linux.ibm.com> | 2024-03-28 18:26:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 18:26:38 +0100 |
commit | 16b7cc69ef43110c9776212379ccc37d7d3263c0 (patch) | |
tree | b357fe6ebe990a0a20840c8aae77b572a2c6ca41 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 1607e8212caa7c050d89b5b143531edb815ec7f3 (diff) | |
download | llvm-16b7cc69ef43110c9776212379ccc37d7d3263c0.zip llvm-16b7cc69ef43110c9776212379ccc37d7d3263c0.tar.gz llvm-16b7cc69ef43110c9776212379ccc37d7d3263c0.tar.bz2 |
[SystemZ] Eliminate call sequence instructions early. (#77812)
On SystemZ, the outgoing argument area which is big enough for all calls
in the function is created once during the prolog, as opposed to
adjusting the stack around each call. The call-sequence instructions are
therefore not really useful any more than to compute the maximum call
frame size, which has so far been done by PEI, but can just as well be
done at an earlier point.
This patch removes the mapping of the CallFrameSetupOpcode and
CallFrameDestroyOpcode and instead computes the MaxCallFrameSize
directly after instruction selection and then removes the ADJCALLSTACK
pseudos. This removes the confusing pseudos and also avoids the problem
of having to keep the call frame size accurate when creating new MBBs.
This fixes #76618 which exposed the need to maintain the call frame size
when splitting blocks (which was not done).
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions