This is an archive of the discontinued LLVM Phabricator instance.

Remove the additional constant which requires an extra register for statepoint lowering.
ClosedPublic

Authored by linzj on Sep 4 2019, 12:46 AM.

Details

Summary

The newly-created constant zero will need an extra register to hold it
in the current statepoint lowering implementation. Remove it if there exists
one.

Event Timeline

linzj created this revision.Sep 4 2019, 12:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 4 2019, 12:46 AM
linzj added a reviewer: arsenm.Sep 4 2019, 6:07 PM
arsenm added inline comments.Sep 4 2019, 6:22 PM
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
865–867

This loses using the right address space sized pointer

linzj marked an inline comment as done.Sep 4 2019, 6:55 PM
linzj added inline comments.
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
865–867

Should I just assign ActualCallee with ConstCallee?

linzj marked an inline comment as not done.Sep 4 2019, 6:55 PM
linzj updated this revision to Diff 218829.Sep 4 2019, 7:44 PM

Use undef SDValue instead.

sanjoy removed a reviewer: sanjoy.Sep 7 2019, 9:29 AM
arsenm accepted this revision.Feb 13 2020, 4:39 PM

LGTM

This revision is now accepted and ready to land.Feb 13 2020, 4:39 PM
linzj added a comment.Feb 26 2020, 6:04 PM

When the commit will be landed?

When the commit will be landed?

If you need someone to commit a patch for you, you should explicitly state so. I can try to commit this in the next day or so

linzj added a comment.Feb 26 2020, 6:44 PM

When the commit will be landed?

If you need someone to commit a patch for you, you should explicitly state so. I can try to commit this in the next day or so

Yes. I need some one commit this for me. I am not a committer. Thank you for your help.

Can you rebase this? I think a similar patch conflicts (a6f38b46972e4e6978c3a768001903d3f3334cb7)

linzj added a comment.Mar 1 2020, 5:42 PM

D67147

Can you rebase this? I think a similar patch conflicts (a6f38b46972e4e6978c3a768001903d3f3334cb7)

Okay

linzj updated this revision to Diff 247555.Mar 1 2020, 10:45 PM

Rebase from the master.

linzj updated this revision to Diff 247571.Mar 2 2020, 1:46 AM

Fix test case miss RUN comment.

linzj updated this revision to Diff 247775.Mar 2 2020, 6:18 PM

Rebase again. I don't think the failed unit test is relevant to my change.

linzj added a comment.Mar 3 2020, 1:57 AM

I think it's fine to go back to the main stream.

linzj added a comment.Mar 5 2020, 10:33 PM

@arsenm , looks good to you?