wangpc-pp wrote: @lukel97 I have added a subtarget feature to indicate whether indexed load/store instructions are optimal. Sorry for delaying for a long time, can you please take a look at the top commit? https://github.com/llvm/llvm-project/pull/101954