[all-commits] [llvm/llvm-project] 1ebd4a: [DAGCombiner] widen any_ext of popcount based on t...

RotateRight via All-commits all-commits at lists.llvm.org
Mon Oct 28 07:11:59 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ebd4a2e3ad0e95ee915ed5a99aab53f8fe7da95
      https://github.com/llvm/llvm-project/commit/1ebd4a2e3ad0e95ee915ed5a99aab53f8fe7da95
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2019-10-28 (Mon, 28 Oct 2019)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/PowerPC/popcnt-zext.ll
    M llvm/test/CodeGen/PowerPC/popcnt.ll

  Log Message:
  -----------
  [DAGCombiner] widen any_ext of popcount based on target support

This enhances D69127 (rGe6c145e0548e3b3de6eab27e44e1504387cf6b53)
to handle the looser "any_extend" cast in addition to zext.

This is a prerequisite step for canonicalizing in the other direction
(narrow the popcount) in IR - PR43688:
https://bugs.llvm.org/show_bug.cgi?id=43688




More information about the All-commits mailing list