[MachineScheduler] Order more stores by ascending address
authorzhongyunde <zhongyunde@huawei.com>
Mon, 13 Jun 2022 09:24:59 +0000 (17:24 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Mon, 13 Jun 2022 09:33:50 +0000 (17:33 +0800)
commitc42a225545b4b494db7866d5db90255926059bc3
tree7e0b1a8d62210be79e94c437605baee22409eb3a
parent6119053dab67129eb1700dbf36db3524dd3e421f
[MachineScheduler] Order more stores by ascending address

According D125377, we order STP Q's by ascending address. While on some
targets, paired 128 bit loads and stores are slow, so the STP will split
into STRQ and STUR, so I hope these stores will also be ordered.
Also add subtarget feature ascend-store-address to control the aggressive order.

Reviewed By: dmgreen, fhahn

Differential Revision: https://reviews.llvm.org/D126700
llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h
llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
llvm/lib/Target/AArch64/AArch64MachineScheduler.cpp