This is an archive of the discontinued LLVM Phabricator instance.

NFC: Migrate LoopFlatten to work on InstructionCost.
ClosedPublic

Authored by sdesmalen on Feb 4 2021, 6:10 AM.

Details

Summary

This patch migrates cost values and arithmetic to work on InstructionCost.
When the interfaces to TargetTransformInfo are changed, any InstructionCost
state will propagate naturally.

See this patch for the introduction of the type: https://reviews.llvm.org/D91174
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html

Diff Detail

Event Timeline

sdesmalen created this revision.Feb 4 2021, 6:10 AM
sdesmalen requested review of this revision.Feb 4 2021, 6:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2021, 6:10 AM
david-arm accepted this revision.Feb 4 2021, 6:36 AM

LGTM!

This revision is now accepted and ready to land.Feb 4 2021, 6:36 AM
This revision was landed with ongoing or failed builds.Feb 6 2021, 4:46 AM
This revision was automatically updated to reflect the committed changes.