[all-commits] [llvm/llvm-project] b279ca: [DAG] visitCTPOP - CTPOP(SHIFT(X)) -> CTPOP(X) iff...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 15 02:41:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b279ca278370dabd27b8d380d59bdb5018366053
      https://github.com/llvm/llvm-project/commit/b279ca278370dabd27b8d380d59bdb5018366053
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/ctpop-mask.ll

  Log Message:
  -----------
  [DAG] visitCTPOP - CTPOP(SHIFT(X)) -> CTPOP(X) iff the shift doesn't affect any non-zero bits

If the source is being (logically) shifted, but doesn't affect any active bits, then we can call CTPOP on the shift source directly.


  Commit: 0636309051f3b1a2b87047770bb3f7df1f3e27c3
      https://github.com/llvm/llvm-project/commit/0636309051f3b1a2b87047770bb3f7df1f3e27c3
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M clang/lib/AST/Interp/Function.h

  Log Message:
  -----------
  Fix MSVC "signed/unsigned mismatch" warning. NFC.


Compare: https://github.com/llvm/llvm-project/compare/2df652a69159...0636309051f3


More information about the All-commits mailing list