-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[x86_64] Passing v1i1 as function argument crashes on icelake-server #64323
Comments
@llvm/issue-subscribers-backend-x86 |
After a recent patch D30189, the report become the following. @phoebewang I am afraid this is not totally fixed yet.
|
I am happy to try this weekend. :) Will keep you posted. |
@phoebewang TL;DR: I see many ways to fix this. One of them is the legalizer should tell the instructions that depend on it that data type has changed. But I can see that can be troublesome if the program has complicated DFG. So please advice how should I approach. Thanks. I detailed debug log:
Then, setcc is further legalized from
However, the instruction that uses the result (
|
A more in-depth reason is that |
Automated commit created by applying diff 551803 Phabricator-ID: PHID-HMBT-h2j5iofebgzzpdemtztz Review-ID: D158355
Automated commit created by applying diff 552430 Phabricator-ID: PHID-HMBT-qtwd73naazbjab4jq5n3 Review-ID: D158355
Automated commit created by applying diff 552434 Phabricator-ID: PHID-HMBT-szq2fqe3rqfhbrkveaxc Review-ID: D158355
Demo on Compiler Explorer
load <1 x i1>, ptr @G
, the crash error changes to "Cannot emit physreg copy instruction"-mcpu=icelake-server
is removed.Code:
Crash backtrace:
The text was updated successfully, but these errors were encountered: