This is an archive of the discontinued LLVM Phabricator instance.

Cleanup CallConvLower.cpp
ClosedPublic

Authored by pi1024e on Jun 25 2020, 12:45 PM.

Details

Summary

The CallConvLower code has a lot of jumps and incongruity in respect to the code's behavior despite there being functions that have identical behavior. For readability, and to highlight this, I refactored this file to better reflect that.

Not to mention, we do not need to assign to HaveRegParm until we go into the do-while loop.

Diff Detail

Event Timeline

pi1024e created this revision.Jun 25 2020, 12:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2020, 12:45 PM
pi1024e updated this revision to Diff 273488.Jun 25 2020, 12:53 PM
pi1024e updated this revision to Diff 273518.Jun 25 2020, 2:25 PM
arsenm accepted this revision.Jun 25 2020, 2:59 PM
arsenm added a subscriber: arsenm.
arsenm added inline comments.
llvm/lib/CodeGen/CallingConvLower.cpp
192 ↗(On Diff #273518)

Don't need the parens

This revision is now accepted and ready to land.Jun 25 2020, 2:59 PM

Are you planning on committing this?

MaskRay accepted this revision.Jul 21 2020, 1:59 PM
This revision was landed with ongoing or failed builds.Oct 5 2020, 2:48 PM
This revision was automatically updated to reflect the committed changes.