[all-commits] [llvm/llvm-project] 6fd160: [InstCombine] Add instcombine fold for extractelem...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Tue Jun 8 02:45:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6fd1604d14335a31268bbc477de27e81310f39ef
      https://github.com/llvm/llvm-project/commit/6fd1604d14335a31268bbc477de27e81310f39ef
  Author: Caroline Concatto <caroline.concatto at arm.com>
  Date:   2021-06-08 (Tue, 08 Jun 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/gep-vector-indices.ll
    M llvm/test/Transforms/InstCombine/vscale_extractelement-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/vscale_extractelement.ll

  Log Message:
  -----------
  [InstCombine] Add instcombine fold for extractelement + splat for scalable vectors

This patch allows that scalable vector can also use the fold that already
exists for fixed vector, only when the lane index is lower than the minimum
number of elements of the vector.

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




More information about the All-commits mailing list