This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fix Local Deallocation for Homogeneous Prolog/Epilog
ClosedPublic

Authored by kyulee on Jul 24 2021, 3:39 PM.

Details

Summary

The stack adjustment for local deallocation was incorrectly ported.

Diff Detail

Event Timeline

kyulee created this revision.Jul 24 2021, 3:39 PM
kyulee requested review of this revision.Jul 24 2021, 3:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2021, 3:39 PM
kyulee retitled this revision from Fix Local Deallocation for Homogeneous Prolog/Epilog to [AArch64] Fix Local Deallocation for Homogeneous Prolog/Epilog.Jul 24 2021, 3:41 PM
MaskRay added inline comments.
llvm/test/CodeGen/AArch64/arm64-homogeneous-prolog-epilog-local.ll
1 ↗(On Diff #361482)

arm64-* tests are historical. New tests shouldn't need the prefix since all tests in this directory are related to aarch64.

20 ↗(On Diff #361482)

remove ssp "frame-pointer"="non-leaf" which are irrelevant.

kyulee updated this revision to Diff 361483.Jul 24 2021, 6:45 PM

Update the change per feedbacks.

LG

llvm/test/CodeGen/AArch64/homogeneous-prolog-epilog-local.ll
1 ↗(On Diff #361483)

hmm, i don't know whether it is necessary to explicitly test two configurations. having one seems sufficient.

5 ↗(On Diff #361483)

It's useful to check sub as well because the intention is to check the sub+add pair.

kyulee updated this revision to Diff 361488.Jul 24 2021, 9:08 PM
kyulee marked 2 inline comments as done.

Update the change per feedbacks.

  • Add sub/add pair check.
  • Check against the one target.
kyulee marked 2 inline comments as done.Jul 24 2021, 9:09 PM
MaskRay added inline comments.Jul 24 2021, 10:46 PM
llvm/test/CodeGen/AArch64/homogeneous-prolog-epilog-local.ll
8 ↗(On Diff #361488)

Now I believe this test should just be added into arm64-homogeneous-prolog-epilog.ll

This reduces the number of RUN lines which can improve performance. Every llc process has some small initial setup overhead.

kyulee updated this revision to Diff 361489.Jul 24 2021, 11:17 PM

Update the change

  • Combine the test into the existing one.
kyulee marked an inline comment as done.Jul 24 2021, 11:17 PM
MaskRay accepted this revision.Jul 24 2021, 11:46 PM
This revision is now accepted and ready to land.Jul 24 2021, 11:46 PM
This revision was landed with ongoing or failed builds.Jul 25 2021, 11:04 AM
This revision was automatically updated to reflect the committed changes.