OSDN Git Service

[ARM] Improve codegen of volatile load/store of i64
authorVictor Campos <victor.campos@arm.com>
Mon, 9 Mar 2020 13:29:37 +0000 (13:29 +0000)
committerVictor Campos <victor.campos@arm.com>
Thu, 28 May 2020 09:52:43 +0000 (10:52 +0100)
commitc010d4d195506aaea76a1cc8afb5a6b5884dba44
tree78c8656440ad6812bccad0d7076d5db86e48e089
parent23ac16cf9bd4cc0bb434efcf6385baf083a2ff7b
[ARM] Improve codegen of volatile load/store of i64

Summary:
Instead of generating two i32 instructions for each load or store of a volatile
i64 value (two LDRs or STRs), now emit LDRD/STRD.

These improvements cover architectures implementing ARMv5TE or Thumb-2.

The code generation explicitly deviates from using the register-offset
variant of LDRD/STRD. In this variant, the register allocated to the
register-offset cannot be reused in any of the remaining operands. Such
restriction seems to be non-trivial to implement in LLVM, thus it is
left as a to-do.

Differential Revision: https://reviews.llvm.org/D70072
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/test/CodeGen/ARM/i64_volatile_load_store.ll [new file with mode: 0644]