[all-commits] [llvm/llvm-project] fdcb27: [InstCombine] Limit CTPOP -> CTTZ simplifications ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Mar 23 07:33:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fdcb27105537f77c78c4473d4f7c47146ddbab69
      https://github.com/llvm/llvm-project/commit/fdcb27105537f77c78c4473d4f7c47146ddbab69
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  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] Limit CTPOP -> CTTZ simplifications to one use

Tweak D76568 so we only combine if it will remove the bit-twiddling.

Suggested by @spatel




More information about the All-commits mailing list