Skip to content

[AMDGPU] Conditionally enable DAG combines for fminimum/fmaximum #81584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jayfoad
Copy link
Contributor

@jayfoad jayfoad commented Feb 13, 2024

fminimum/fmaximum are only legal on some subtargets. This patch only
enables the DAG combines for fminimum3/fmaximum3 on those subtargets.

Without this, the combine can kick in before legalization, and then
nothing will legalize the target-specific fminimum3/fmaximum3 nodes.

fminimum/fmaximum are only legal on some subtargets. This patch only
enables the DAG combines for fminimum3/fmaximum3 on those subtargets.

Without this, the combine can kick in before legalization, and then
nothing will legalize the target-specific fminimum3/fmaximum3 nodes.
@jayfoad
Copy link
Contributor Author

jayfoad commented Feb 13, 2024

Other possible approaches:

  • implement legalization for fminimum3/fmaximum3
  • only do the combine post-legalization

I'm not sure which approach is best.

@jayfoad
Copy link
Contributor Author

jayfoad commented Feb 13, 2024

This probably isn't much use until #67301 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant