This is an archive of the discontinued LLVM Phabricator instance.

Delete two if-statements in InstCombineCalls.cpp
AcceptedPublic

Authored by frokaikan on Mar 10 2021, 2:44 AM.

Details

Reviewers
majnemer
nikic
Summary

These two if-statements check if the 3rd argument of memcpy intrinsic is 1, and then do nothing.
It aims to replace the intrinsic with load/store instruction, but it will be done in the later code.
Consequently, the two if-statements are redundant, and should be removed.

Diff Detail

Event Timeline

frokaikan created this revision.Mar 10 2021, 2:44 AM
frokaikan requested review of this revision.Mar 10 2021, 2:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2021, 2:44 AM
hghwng added a subscriber: hghwng.Mar 10 2021, 2:45 AM
nikic accepted this revision.Mar 10 2021, 8:40 AM
nikic added a subscriber: nikic.

LGTM

This revision is now accepted and ready to land.Mar 10 2021, 8:40 AM

Could you please provide Your Name <your@email> to use for the commit?