This is an archive of the discontinued LLVM Phabricator instance.

[NFC][InstCombine] Make check for sret in a vararg function clearer
ClosedPublic

Authored by aeubanks on Sep 6 2021, 1:05 PM.

Details

Summary

We're trying to get the parameter index of sret and see if it's part of
a function's varargs.

Diff Detail

Event Timeline

aeubanks created this revision.Sep 6 2021, 1:05 PM
aeubanks requested review of this revision.Sep 6 2021, 1:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2021, 1:05 PM
rnk accepted this revision.Sep 7 2021, 11:15 AM

Yikes. I'm guessing this edge case is actually covered by a test.

This change is NFC, but it looks like a functional change, so consider using the oft-overused NFC tag to clarify that there really is no behavior change.

This revision is now accepted and ready to land.Sep 7 2021, 11:15 AM
aeubanks retitled this revision from [InstCombine] Make check for sret in a vararg function clearer to [NFC][InstCombine] Make check for sret in a vararg function clearer.Sep 7 2021, 11:20 AM