[all-commits] [llvm/llvm-project] d29ccb: [X86][AVX] Attempt to fold a scaled index into a g...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 28 06:08:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d29ccbecd093c881c599fd41db5d68dae744f91f
      https://github.com/llvm/llvm-project/commit/d29ccbecd093c881c599fd41db5d68dae744f91f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-28 (Thu, 28 Oct 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/masked_gather_scatter.ll

  Log Message:
  -----------
  [X86][AVX] Attempt to fold a scaled index into a gather/scatter scale immediate (PR13310)

If the index operand for a gather/scatter intrinsic is being scaled (self-addition or a shl-by-immediate) then we may be able to fold that scaling into the intrinsic scale immediate value instead.

Fixes PR13310.

Differential Revision: https://reviews.llvm.org/D108539




More information about the All-commits mailing list