[PATCH] D119728: [AArch64][SVE] Handle more cases in findMoreOptimalIndexType.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 22 01:55:59 PST 2022


sdesmalen added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/sve-gather-scatter-addr-opts.ll:302
+  %add1 = add <vscale x 4 x i64> %splat.offset, %step
+  %add2 = add <vscale x 4 x i64> %add1, %splat.offset2
+  %gep = getelementptr [8 x half], [8 x half]* %base, <vscale x 4 x i64> %add2
----------------
CarolineConcatto wrote:
> If I switch this the fold does not happen.  I know this was not supported before, but should we try to support now?
Good spot, but I don't think we want to fix that in this patch. This requires changes to `SelectionDAG::canonicalizeCommutativeBinop`, which was left as follow-up work from D118459. This is better done separately from this patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119728/new/

https://reviews.llvm.org/D119728



More information about the llvm-commits mailing list