This is an archive of the discontinued LLVM Phabricator instance.

[SLP][NFC] Rename a couple of variables and replace an if-else with an std::min
ClosedPublic

Authored by vporpo on May 9 2023, 8:09 PM.

Details

Summary
  • Rename LimitForRegisterSize to MaxVFOnly to make the meaning of the limit less ambiguous
  • Rename OpsWidth to ActualVF, which makes it clear that this is the VF we are using for vectorization.
  • Replace the if-else code for the initialization of OpsWidth with an std::min.

Diff Detail

Event Timeline

vporpo created this revision.May 9 2023, 8:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2023, 8:09 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
vporpo requested review of this revision.May 9 2023, 8:09 PM
This revision is now accepted and ready to land.May 10 2023, 2:57 AM
This revision was landed with ongoing or failed builds.May 10 2023, 9:38 AM
This revision was automatically updated to reflect the committed changes.