[all-commits] [llvm/llvm-project] afd4df: [DAG] isKnownToBeAPowerOfTwo - add DemandedElts, O...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Sun Feb 15 03:45:43 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: afd4df07ab0262482829d4410a6bae9f2809d37b
https://github.com/llvm/llvm-project/commit/afd4df07ab0262482829d4410a6bae9f2809d37b
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2026-02-15 (Sun, 15 Feb 2026)
Changed paths:
M llvm/include/llvm/CodeGen/SelectionDAG.h
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
M llvm/unittests/Target/AArch64/AArch64SelectionDAGTest.cpp
Log Message:
-----------
[DAG] isKnownToBeAPowerOfTwo - add DemandedElts, OrZero arguments and support for zero constants (#181485)
Update the signature for isKnownToBeAPowerOfTwo methods to take
DemandedElts and OrZero arguments.
So far all I've done is add OrZero support for constants
(scalars/buildvector/splat), with the intention to incrementally extend
support in the future (or spread the work as beginner GFI patches).
Similarly the DemandedElts argument is currently only used for constant
build vector tests but support can be extended in future patches.
Fixes #178938
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