[all-commits] [llvm/llvm-project] 6e1271: [VP][fix] Don't discard masks in reductions

Simon Moll via All-commits all-commits at lists.llvm.org
Wed May 25 06:55:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e12711081d76fea8dc2f4d9579cfdf379497bbf
      https://github.com/llvm/llvm-project/commit/6e12711081d76fea8dc2f4d9579cfdf379497bbf
  Author: Simon Moll <moll at cs.uni-saarland.de>
  Date:   2022-05-25 (Wed, 25 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/ExpandVectorPredication.cpp
    M llvm/test/CodeGen/Generic/expand-vp.ll

  Log Message:
  -----------
  [VP][fix] Don't discard masks in reductions

When expanding VP reductions to non VP-code, the reduction pass was
ignoring the mask before. Fix this by keeping the mask and selecting
neutral elements where the mask is zero.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list