[all-commits] [llvm/llvm-project] 57d2a2: [AggressiveInstCombine] POPCNT generation for bit-...

Rohit Aggarwal via All-commits all-commits at lists.llvm.org
Thu Apr 16 02:13:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57d2a2c287538adc0297820047f637deb6570c63
      https://github.com/llvm/llvm-project/commit/57d2a2c287538adc0297820047f637deb6570c63
  Author: Rohit Aggarwal <44664450+rohitaggarwal007 at users.noreply.github.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
    M llvm/test/Transforms/AggressiveInstCombine/popcount.ll

  Log Message:
  -----------
  [AggressiveInstCombine] POPCNT generation for bit-count pattern (#180917)

The proposal is to enhance LLVM by teaching it to recognize the pattern
and replace it with the hardware POPCNT instruction.

#177109 has the first pattern of the popcnt fold.

---------

Co-authored-by: Rohit Aggarwal <Rohit.Aggarwal at amd.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list