[DAG] computeKnownBits - add support for ISD::VECREDUCE_ADD
We already have KnownBits::reduceAdd to handle this (for fixed vector types at least).
We just need the SelectionDAG.computeKnownBits wrapper and suitable test coverage
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
- Check that no other contributor is working on this issue. If someone is assigned to the issue or claimed to be working on it, ping the person. After one week without a response, the assignee may be changed.
- Leave a comment indicating that you are working on the issue, or just create a pull request after following the steps below. Mention this issue in the description of the pull request.
- Fix the issue locally. Be aware that LLVM's AI policy forbids the use of AI tools to fix good first issues since it squanders a learning opportunity. Using LLMs to search and learn is permitted, since the goal is learning.
- Run the test suite locally. Remember that the subdirectories under
test/create fine-grained testing targets, so you can e.g. usemake check-clang-astto only run Clang's AST tests. - Create a Git commit.
- Run
git clang-format HEAD~1to format your changes. - Open a pull request to the upstream repository on GitHub. Detailed instructions can be found in GitHub's documentation. Mention this issue in the description of the pull request.
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Simon Pilgrim (RKSimon)
We just need the SelectionDAG.computeKnownBits wrapper and suitable test coverage
Hi, I'd like to work on this!
@sabonaoabdi any progress? the actual implementation should only be a couple of lines - but you will need to add test coverage (probably to AArch64 or RISCV backend which have the most mature support)
i finished the implementation and now on the test coverage (RISCV), should have a PR up shortly
Hi @RKSimon It seems that both of the PRs for this issue are blocked for sometime. If it is alright, I would like to take up this issue and work on it
@quic-garvgupt You need to address #209102 first, please work with the riscv team