Skip to content

[SPIR-V] Start cleaning up register classes.#258

Open
zuban32 wants to merge 1 commit into
feature/spirv-backend-llvm15_0_7_4from
cleanup_regclasses0
Open

[SPIR-V] Start cleaning up register classes.#258
zuban32 wants to merge 1 commit into
feature/spirv-backend-llvm15_0_7_4from
cleanup_regclasses0

Conversation

@zuban32
Copy link
Copy Markdown
Contributor

@zuban32 zuban32 commented Apr 13, 2023

In order to fix EXPENSIVE_CHECKS failures the hierarchy of register classes for SPIRV target needs to be adjusted.

This patch removes redundant FP regclasses since they effectively mimic type inference for existing generic FP instructions.

Also this change begins replacing explicit setRegClass calls with simply constraining instruction operands.

In order to fix EXPENSIVE_CHECKS failures the hierarchy
of register classes for SPIRV target needs to be adjusted.

This patch removes redundant FP regclasses since they
effectively mimic type inference for existing generic FP instructions.

Also this change begins replacing explicit setRegClass calls with
simply constraining instruction operands.
Copy link
Copy Markdown
Member

@michalpaszkowski michalpaszkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michalpaszkowski
Copy link
Copy Markdown
Member

@zuban32 Do you think this patch could be pushed to Phabricator?

@zuban32
Copy link
Copy Markdown
Contributor Author

zuban32 commented Apr 28, 2023

@zuban32 Do you think this patch could be pushed to Phabricator?

Absolutely, I just need to split it into 2-3 smaller patches before uploading. Plan to do that in the next 1-2 weeks

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants