[llvm] [AArch64] merge index address with large offset into base address (PR #75343)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 14 01:59:34 PST 2023
================
@@ -481,6 +505,16 @@ static unsigned getPreIndexedOpcode(unsigned Opc) {
}
}
+static unsigned getBaseAddressOpcode(unsigned Opc) {
+ // TODO: Add more index address loads/stores.
+ switch (Opc) {
+ default:
+ llvm_unreachable("Opcode has no base address equivalent!");
----------------
vfdff wrote:
yes, the function `isMergeableIndexLdSt` called by `AArch64LoadStoreOpt::optimizeBlock` will check only the expected opcode will try this fold. (Now only support one opcode `LDRBBroX` )
https://github.com/llvm/llvm-project/pull/75343
More information about the llvm-commits
mailing list