This is an archive of the discontinued LLVM Phabricator instance.

[MemCpyOpt] Remove unnecessary bitcast and reuse some variables for ByValOptimization (NFC)
ClosedPublic

Authored by khei4 on Jun 3 2023, 2:12 AM.

Details

Summary

Working on removing memcpy for Immutablly attributed pointer parameters tells me this is unnecessary (thanks to Nikita).
Also, reuse some variables.

ref: discussion on https://reviews.llvm.org/D150970#4388320

Diff Detail

Event Timeline

khei4 created this revision.Jun 3 2023, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2023, 2:12 AM
khei4 requested review of this revision.Jun 3 2023, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2023, 2:12 AM
khei4 retitled this revision from [MemCpyOpt] Remove unnecessary bitcast for ByValOptimization (NFC) to [MemCpyOpt] Remove unnecessary bitcast and reuse some variables for ByValOptimization (NFC).Jun 3 2023, 2:15 AM
khei4 edited the summary of this revision. (Show Details)
nikic accepted this revision.Jun 3 2023, 6:05 AM

LGTM

This revision is now accepted and ready to land.Jun 3 2023, 6:05 AM