This is an archive of the discontinued LLVM Phabricator instance.

[CodeGenPrepare] Don't give up if unable to sink first arg to a cold call
ClosedPublic

Authored by chill on Feb 13 2023, 2:45 AM.

Diff Detail

Event Timeline

chill created this revision.Feb 13 2023, 2:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 2:45 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
chill requested review of this revision.Feb 13 2023, 2:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 2:45 AM
nikic added a subscriber: nikic.Feb 14 2023, 4:00 AM
nikic added inline comments.
llvm/test/CodeGen/Generic/addr-sink-call-multi-arg.ll
1

Can we make this an opt -codegenprepare test instead and use update_test_checks? (Applies to the rest of this patch stack as well.)

7

i32 * should be ptr as well.

mkazantsev accepted this revision.Feb 19 2023, 11:21 PM

Code change LG, please address Nikita's comments before checking in the test.

This revision is now accepted and ready to land.Feb 19 2023, 11:21 PM
chill updated this revision to Diff 503832.Mar 9 2023, 10:23 AM
chill marked an inline comment as done.
chill added inline comments.
llvm/test/CodeGen/Generic/addr-sink-call-multi-arg.ll
7

Will do.

chill updated this revision to Diff 504080.Mar 10 2023, 3:25 AM
chill marked an inline comment as done.
This revision was landed with ongoing or failed builds.Mar 23 2023, 10:36 AM
This revision was automatically updated to reflect the committed changes.