[all-commits] [llvm/llvm-project] 46c8c1: [AggressiveInstCombine] Factor common code out of ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu May 28 12:38:27 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46c8c1e1320e5524700f09998490a5fd7216917b
https://github.com/llvm/llvm-project/commit/46c8c1e1320e5524700f09998490a5fd7216917b
Author: Craig Topper <craig.topper at sifive.com>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
M llvm/test/Transforms/AggressiveInstCombine/popcount.ll
Log Message:
-----------
[AggressiveInstCombine] Factor common code out of tryToRecognizePopCount and tryToRecognizePopCount2n3. (#199440)
Both of these patterns end with code to compute the popcount of each
byte.
This isn't NFC because tryToRecognizePopCount2n3 handled an alternate
pattern for one of the steps and tryToRecognizePopCount used
MaskedValueIsZero. The shared code applies these differences to both
cases. New tests have been added.
Assisted-by: Claude Sonnet 4.6
---------
Co-authored-by: Min-Yih Hsu <min at myhsu.dev>
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