This is an archive of the discontinued LLVM Phabricator instance.

[GVN][NFC] Refactor GVN::AnalyzeLoadAvailability method
ClosedPublic

Authored by kachkov98 on Jan 13 2023, 12:38 AM.

Details

Summary

Simplify AnalyzeLoadAvailability code:

  1. Use std::optional for return value
  2. Use range-based loop for non-local dependencies

Diff Detail

Event Timeline

kachkov98 created this revision.Jan 13 2023, 12:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 12:38 AM
kachkov98 requested review of this revision.Jan 13 2023, 12:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 12:38 AM
nikic accepted this revision.Jan 13 2023, 1:10 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jan 13 2023, 1:10 AM
This revision was landed with ongoing or failed builds.Jan 13 2023, 1:25 AM
This revision was automatically updated to reflect the committed changes.