This is an archive of the discontinued LLVM Phabricator instance.

[MemCpyOpt] add terminator user test for D153453(NFC)
ClosedPublic

Authored by khei4 on Jul 18 2023, 2:57 AM.

Diff Detail

Event Timeline

khei4 created this revision.Jul 18 2023, 2:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 2:57 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
khei4 requested review of this revision.Jul 18 2023, 2:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 2:57 AM
nikic accepted this revision.Jul 18 2023, 5:34 AM

LGTM with some nits.

llvm/test/Transforms/MemCpyOpt/stack-move.ll
385

immediate

417

Is this call needed to reproduce the crash?

419

fastcc and byval here look unnecessary (byval can be replaced by nocapture).

423

I don't think this extra br is needed, you can directly resume.

This revision is now accepted and ready to land.Jul 18 2023, 5:34 AM
khei4 updated this revision to Diff 541902.Jul 19 2023, 2:08 AM
khei4 marked an inline comment as done.

apply feedback

khei4 added a comment.Jul 19 2023, 2:08 AM

@nikic Thank you for the review!

llvm/test/Transforms/MemCpyOpt/stack-move.ll
417

No, just some copy source residue noise! Thanks!

423

Right!

khei4 marked 3 inline comments as done.Jul 19 2023, 2:08 AM
This revision was landed with ongoing or failed builds.Jul 19 2023, 2:26 AM
This revision was automatically updated to reflect the committed changes.