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

[X86][SSE] Improve ISD::FP_TO_*INT_SAT vector lowering

Open RKSimon opened this issue 5 years ago • 9 comments

Bugzilla Link 52581
Version trunk
OS Windows NT
CC @topperc,@DMG862,@RKSimon,@phoebewang,@rotateright

Extended Description

https://gcc.godbolt.org/z/3q7KGs6h5

We currently scalarize these cases, but we should be able to make use of SSE behaviour for out-of-range integer results to keep these fully vectorized.

RKSimon avatar Nov 22 '21 17:11 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. Assign the issue to you.
  2. Fix the issue locally.
  3. Run the test suite locally. 3.1) 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.
  4. Create a git commit
  5. Run git clang-format HEAD~1 to format your changes.
  6. Submit the patch to Phabricator. 6.1) Detailed instructions can be found here

For more instructions on how to submit a patch to LLVM, see our documentation.

If you have any further questions about this issue, don't hesitate to ask via a comment on this Github issue.

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

llvmbot avatar Aug 15 '23 18:08 llvmbot

Candidate Patch: https://reviews.llvm.org/D150372

RKSimon avatar Aug 16 '23 09:08 RKSimon

Candidate Patch: https://reviews.llvm.org/D150372

@e-kud Do you intend to resurrect this patch or might somebody else continue it?

RKSimon avatar Mar 06 '24 11:03 RKSimon

@RKSimon let me prioritize this issue. I remember there were two problems: 1) not all fptosi+min+max can be combined into fptosi_sat but they should be 2) one of fp-int type combination wasn't convenient to support. I've tried to fix them both at once, that's why it has been stuck. I'll concentrate on fptosi_sat exclusively.

e-kud avatar Mar 11 '24 00:03 e-kud

Hi, I would love to work on this issue

shivam-dhir avatar Jan 22 '26 06:01 shivam-dhir

Hi, can i start work on this issue?

Panadulek avatar May 24 '26 00:05 Panadulek

Pls review pull request: https://github.com/llvm/llvm-project/pull/199416

Panadulek avatar May 24 '26 12:05 Panadulek

i am a new contributor.. i wanna work on this issue.

sangam151 avatar Sep 03 '26 16:09 sangam151

@sangam151 fyi I have already pr for it. Friendly info

Panadulek avatar Sep 03 '26 16:09 Panadulek