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

[DAG] SelectionDAG::canCreateUndefOrPoison - add TRUNCATE_SAT handling + tests

Open RKSimon opened this issue 1 year ago • 7 comments

Add ISD::TRUNCATE_SSAT_S/TRUNCATE_SSAT_U/TRUNCATE_USAT_U to SelectionDAG::canCreateUndefOrPoison along with suitable test coverage

RKSimon avatar Aug 05 '25 13:08 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 Aug 05 '25 13:08 llvmbot

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

Author: Simon Pilgrim (RKSimon)

Add ISD::TRUNCATE_SSAT_S/TRUNCATE_SSAT_U/TRUNCATE_USAT_U to SelectionDAG::canCreateUndefOrPoison along with suitable test coverage

llvmbot avatar Aug 05 '25 13:08 llvmbot

I would like to contribute to this thanks @RKSimon

rhyadav avatar Aug 05 '25 15:08 rhyadav

@rhyadav reverse ping?

RKSimon avatar Sep 05 '25 15:09 RKSimon

@RKSimon apologies for the delay, due at a personal situation, might take a week to finish, half of the work is done, hopefully should be ok?

rhyadav avatar Sep 06 '25 06:09 rhyadav

Seems there's no movements on this issue, can I give it a try?

kuroyukiasuna avatar Nov 19 '25 23:11 kuroyukiasuna

@RKSimon please review when you get a chance, thanks a ton!

kuroyukiasuna avatar Nov 20 '25 02:11 kuroyukiasuna