This is an archive of the discontinued LLVM Phabricator instance.

[LoopPeel] Expose ValueMap of last peeled iteration. NFC
ClosedPublic

Authored by anna on Nov 17 2022, 10:46 AM.

Details

Summary

The value map of last peeled iteration is computed within peelLoop API.
This patch exposes it for callers of peelLoop.
While this is not currently used by upstream passes, we have a usecase
downstream which benefits from this API update. Future users of peelLoop
can also use the ValueMap if needed.

Similar value maps are exposed by other loop utilities such as loop
cloning.

Diff Detail

Event Timeline

anna created this revision.Nov 17 2022, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 10:46 AM
anna requested review of this revision.Nov 17 2022, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 10:46 AM

Looks reasonable to me. I would give it a day or two for others to take a look and if there are no objections go ahead and land.

mkazantsev accepted this revision.Nov 21 2022, 10:18 PM

LG, besides it's a NFC.

This revision is now accepted and ready to land.Nov 21 2022, 10:18 PM
This revision was landed with ongoing or failed builds.Dec 19 2022, 6:55 AM
This revision was automatically updated to reflect the committed changes.