[llvm] [SelectionDAG] Fold VECREDUCE_ADD of a constant BUILD_VECTOR (PR #207560)

Ankit Kumar Tiwari via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 11 06:19:13 PDT 2026


ankit-cybertron wrote:

Not this is the right place to discuss this or not but I was looking at the FIXME around line 7085 in getNode()'s dispatch switch, since VECREDUCE_ADD is in there now, was thinking of try the other VECREDUCE_* ops next (MUL/AND/OR/XOR/SMAX/SMIN/UMAX/UMIN)
Also, not sure about PARITY seems to be missing from both the fold switch and allowlist, even though CTPOP/BITREVERSE/BSWAP right next to it are already handled. Is that just what got missed, or was it left out on purpose?
@RKSimon 

https://github.com/llvm/llvm-project/pull/207560


More information about the llvm-commits mailing list