Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from llvm:master #2031

Merged
merged 2 commits into from
Dec 14, 2019
Merged

[pull] master from llvm:master #2031

merged 2 commits into from
Dec 14, 2019

Conversation

pull[bot]
Copy link

@pull pull bot commented Dec 14, 2019

See Commits and Changes for more details.


Created by pull[bot]. Want to support this open source service? Please star it : )

loganchien and others added 2 commits December 14, 2019 10:23
The commit r369122 may keep LR and FP register (aka. frame record) in
the middle of a frame, thus we must add the offsets to ensure the FP
register always points to innermost frame record on the stack.

According to AAPCS64[1], a conforming code shall construct a linked list
of stack frames that can be traversed with frame records.  This commit
is also essential to frame-pointer-based stack unwinder (e.g.  the stack
unwinder in linx-perf-tools.)

[1] https://github.com/ARM-software/software-standards/blob/master/abi/aapcs64/aapcs64.rst#the-frame-pointer

Test: llvm-lit ${LLVM_SRC}/test/CodeGen/AArch64/framelayout-frame-record.ll
Test: llvm-lit ${LLVM_SRC}/test/CodeGen/AArch64

Differential Revision: https://reviews.llvm.org/D70800
@pull pull bot added the ⤵️ pull label Dec 14, 2019
@pull pull bot merged commit 5ea34c1 into Ericsson:master Dec 14, 2019
balazske pushed a commit to balazske/llvm-project that referenced this pull request Dec 6, 2023
When all the large const offsets masked with the same value from bit-12 to bit-23.
Fold
  add     x8, x0, Ericsson#2031, lsl Ericsson#12
  add     x8, x8, Ericsson#960
  ldr     x9, [x8, x8]
  ldr     x8, [x8, Ericsson#2056]

into
  add     x8, x0, Ericsson#2031, lsl Ericsson#12
  ldr     x9, [x8, Ericsson#960]
  ldr     x8, [x8, Ericsson#3016]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants