[all-commits] [llvm/llvm-project] 129ae5: [INSTCOMBINE] Transform reduction(shuffle V, poiso...

cilkplus via All-commits all-commits at lists.llvm.org
Tue Jun 29 10:18:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 129ae515fba022353050e0f313b32595de9e4b39
      https://github.com/llvm/llvm-project/commit/129ae515fba022353050e0f313b32595de9e4b39
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-06-29 (Tue, 29 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/reduction-shufflevector.ll

  Log Message:
  -----------
  [INSTCOMBINE] Transform reduction(shuffle V, poison, unique_mask) to reduction(V).

After SLP + LTO we may have have reduction(shuffle V, poison,
mask). This can be simplified to just reduction(V) if the mask is only
for single vector and just all elements from this vector are permuted,
  without reusing, replacing with undefs and/or other values, etc.

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




More information about the All-commits mailing list