[all-commits] [llvm/llvm-project] 2170e0: [SVE][CodeGen] CTLZ, CTTZ & CTPOP operations (pred...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Wed Jan 13 04:30:43 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2170e0ee60db638175a8c57230d46fbaafa06d4c
      https://github.com/llvm/llvm-project/commit/2170e0ee60db638175a8c57230d46fbaafa06d4c
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    A llvm/test/CodeGen/AArch64/sve-bit-counting-pred.ll

  Log Message:
  -----------
  [SVE][CodeGen] CTLZ, CTTZ & CTPOP operations (predicates)

Canonicalise the following operations in getNode() for predicate types:
 - CTLZ(Pred)  -> bitwise_NOT(Pred)
 - CTTZ(Pred)  -> bitwise_NOT(Pred)
 - CTPOP(Pred) -> Pred

Reviewed By: david-arm

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




More information about the All-commits mailing list