llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[DAG] isKnownNeverZero - add computeKnownBits fallback DemandedElts handling and tests

Open RKSimon opened this issue 9 months ago • 10 comments

Needs to be updated now that #182679 has landed

RKSimon avatar Feb 24 '26 12:02 RKSimon

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:

  1. 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.
  2. 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.
  3. Fix the issue locally.
  4. Run the test suite locally. Remember that the subdirectories under test/ create fine-grained testing targets, so you can e.g. use make check-clang-ast to only run Clang's AST tests.
  5. Create a Git commit.
  6. Run git clang-format HEAD~1 to format your changes.
  7. 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.

llvmbot avatar Feb 24 '26 12:02 llvmbot

@llvm/issue-subscribers-good-first-issue

Author: Simon Pilgrim (RKSimon)

Needs to be updated now that #182679 has landed

llvmbot avatar Feb 24 '26 12:02 llvmbot

I would like to work on this issue! @RKSimon

youngsun4786 avatar Feb 25 '26 01:02 youngsun4786

Hey @youngsun4786 , are you still actively working on this? If not, I’d be happy to take it over.

VatsalKhosla avatar Mar 08 '26 05:03 VatsalKhosla

@VatsalKhosla I am still working on it!

youngsun4786 avatar Mar 08 '26 06:03 youngsun4786

@RKSimon Hi I finished working on it, and I am trying to run the test. I am following the Test Guide and ran make-check-llvm-unit in llvm subdirectory, but for some reason my machine is having issues finding the target.

youngsun4786 avatar Mar 09 '26 19:03 youngsun4786

We're trying to avoid creating unit tests and use general lit tests. Does anything show a difference in check-llvm-codegen ?

RKSimon avatar Mar 09 '26 20:03 RKSimon

@RKSimon , I reviewed the PR, seems that @youngsun4786 not working on it any more, can I have a try? New to the community, not sure if it is apropriate to take this kind of problem.

ShaofengWu avatar May 15 '26 06:05 ShaofengWu

The implementation is trivial, its adding suitable test coverage that will take time.

@youngsun4786 are you still working on this? I've added @ShaofengWu as an assignee but you still have priority if you can get this done soon.

RKSimon avatar May 15 '26 08:05 RKSimon

OK, working on it, thank you

ShaofengWu avatar May 19 '26 01:05 ShaofengWu