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
Paths
| Differential D152056
[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). ref: discussion on https://reviews.llvm.org/D150970#4388320
Diff Detail Event Timelinekhei4 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 This revision is now accepted and ready to land.Jun 3 2023, 6:05 AM Closed by commit rGf4eafba2064d: [MemCpyOpt] Remove unnecessary bitcast and reuse some variables for… (authored by khei4). · Explain WhyJun 4 2023, 12:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 528083 llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
|