-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
[MIPS] Use softPromoteHalf legalization for fp16 rather than PromoteFloat #110199
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
2ffa43e
to
260ff02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix #97975.
This only fixes it for the MIPS architecture, so should not close the issue with "Fix".
The fix itself here looks fine to me, but I feel like the test coverage is very weak. There's just that one test, and because it's not a generated one, it omits too much information to even tell if the assembly is correct.
SDValue Lo = DAG.getNode(MipsISD::Lo, DL, Ty, | ||
getTargetNode(N, Ty, DAG, LoFlag)); | ||
SDValue Lo = | ||
DAG.getNode(MipsISD::Lo, DL, Ty, getTargetNode(N, Ty, DAG, LoFlag)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated reformat? Please use git-clang-format to format PRs, it should leave unrelated lines alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had used the git clang-format
tool before submitting this PR, and it automatically modified the irrelevant code format, so I submitted it together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would do it locally to check it again.
260ff02
to
a618b49
Compare
I would update the title and enhance the test file. |
a618b49
to
38fcdfa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please rebase over 9f81acf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikic Please help review, thanks!
38fcdfa
to
3e5c16f
Compare
Ping |
Is it possible to add a test with |
3e5c16f
to
a87fac2
Compare
@tgross35 Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix part of #97975.