This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Refactor loop metadata movemen
ClosedPublic

Authored by urnathan on May 8 2023, 3:58 AM.

Details

Summary

I happened to touch this code locally and noticed a couple of things:

  1. Let's use 'if (T var = expr)' form
  2. llvm.loop is one of the fixed metadata ids, let's just use that

Both #1 and #2 are used for elsewhere in the function for these exact accesses.

Diff Detail

Event Timeline

urnathan created this revision.May 8 2023, 3:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 3:58 AM
Herald added subscribers: hoy, hiraditya. · View Herald Transcript
urnathan requested review of this revision.May 8 2023, 3:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 3:58 AM
kazu accepted this revision.May 8 2023, 10:14 AM
This revision is now accepted and ready to land.May 8 2023, 10:14 AM
This revision was automatically updated to reflect the committed changes.