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

[DAG] computeKnownFPClass - add ISD::SINT_TO_FP/UINT_TO_FP handling

Open RKSimon opened this issue 8 months ago • 6 comments

This will need to be based off the implementation in computeKnownFPClass in ValueTracking.cpp.

Hopefully once https://github.com/llvm/llvm-project/pull/189476 lands the ISD::SINT_TO_FP/UINT_TO_FP handling can be removed from DAG.isKnownNeverNaN and the generic fallback to computeKnownFPClass can be used instead.

Must include DemandedElts handling and IR test coverage.

RKSimon avatar Mar 30 '26 20:03 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 Mar 30 '26 20:03 llvmbot

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

Author: Simon Pilgrim (RKSimon)

This will need to be based off the implementation in computeKnownFPClass in ValueTracking.cpp.

Must include DemandedElts handling and IR test coverage.

llvmbot avatar Mar 30 '26 20:03 llvmbot

I would like to give this a try.

pau-sum avatar Mar 30 '26 21:03 pau-sum

@pau-sum hey, are you still working on the linked PR?

Andrewfeng123 avatar Nov 23 '26 06:11 Andrewfeng123

@pau-sum hey, are you still working on the linked PR?

Dropped the ball on this; feel free to finish it up

pau-sum avatar Nov 23 '26 14:11 pau-sum

I'm on this, close to a patch now.

Andrewfeng123 avatar Nov 27 '26 19:11 Andrewfeng123