[all-commits] [llvm/llvm-project] aaf163: [Scalarizer] No need to gather a scattered extract...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Tue Jun 21 09:46:47 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aaf1630ac38c890f1476fe9ee002f5fe2f5cc188
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/Scalarizer.cpp
    M llvm/test/Transforms/Scalarizer/global-bug.ll
    A llvm/test/Transforms/Scalarizer/vector-of-pointer-to-vector.ll

  Log Message:
  [Scalarizer] No need to gather a scattered extracted element

ExtractElement does not produce a vector out of a vector, so there's no need to
call a gather once done.

Fix #54469

Credits to npopov at redhat.com for the original approach.

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

More information about the All-commits mailing list