[all-commits] [llvm/llvm-project] a1fe6b: [InstCombine] remove one-use check for ctpop -> cttz

RotateRight via All-commits all-commits at lists.llvm.org
Mon Mar 23 11:09:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a1fe6beb1ec3903e9c9351ae58c6747545189a58
      https://github.com/llvm/llvm-project/commit/a1fe6beb1ec3903e9c9351ae58c6747545189a58
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-03-23 (Mon, 23 Mar 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/ctpop-cttz.ll

  Log Message:
  -----------
  [InstCombine] remove one-use check for ctpop -> cttz

Two one-use checks were added with rGfdcb27105537,
but only the first one is necessary to limit an
increase in instruction count. The second transform
only creates one instruction, so it is always a
reasonable canonicalization/optimization.




More information about the All-commits mailing list