diff options
author | hev <wangrui@loongson.cn> | 2024-06-25 18:53:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 18:53:17 +0800 |
commit | bfad8757159a3def7c07d4f5ef23ed76fafdf441 (patch) | |
tree | 7405c5b627db690a0381a9640b0656761b418b6e /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 65f9601fb1479507820ca8381bb472ec4e8a2eee (diff) | |
download | llvm-bfad8757159a3def7c07d4f5ef23ed76fafdf441.zip llvm-bfad8757159a3def7c07d4f5ef23ed76fafdf441.tar.gz llvm-bfad8757159a3def7c07d4f5ef23ed76fafdf441.tar.bz2 |
[LoongArch] Ensure PseudoLA* can be hoisted (#94723)
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_{LD,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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions