diff options
| author | Jessica Clarke <jrtc27@jrtc27.com> | 2022-03-16 18:45:34 +0000 |
|---|---|---|
| committer | Jessica Clarke <jrtc27@jrtc27.com> | 2022-03-16 18:45:36 +0000 |
| commit | 659363c0ccfb36a0cb6ad70b9ea262b66296ed84 (patch) | |
| tree | 733c1a33be567ff7ccb18854817f2c24e426ee29 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 883f755639462d3c2cb6ec22bcfb7ee769fb7715 (diff) | |
| download | llvm-659363c0ccfb36a0cb6ad70b9ea262b66296ed84.zip llvm-659363c0ccfb36a0cb6ad70b9ea262b66296ed84.tar.gz llvm-659363c0ccfb36a0cb6ad70b9ea262b66296ed84.tar.bz2 | |
[RISCV] Ensure PseudoLA* can be hoisted
Since we mark the pseudos as mayLoad but do not provide any MMOs,
isSafeToMove conservatively returns false, stopping MachineLICM from
hoisting the instructions. PseudoLA_TLS_GD does not actually expand to a
load, so stop marking that as mayLoad to allow it to be hoisted, and for
the others make sure to add MMOs during lowering to indicate they're GOT
loads and thus can be freely moved.
Fixes https://github.com/llvm/llvm-project/issues/54372
Reviewed By: MaskRay, arichardson
Differential Revision: https://reviews.llvm.org/D121654
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
