[PATCH] D95352: NFC: Migrate SimpleLoopUnswitch to work on InstructionCost

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 05:51:14 PST 2021


sdesmalen created this revision.
sdesmalen added reviewers: david-arm, lebedev.ri, ctetreau, dmgreen.
Herald added subscribers: dexonsmith, hiraditya.
sdesmalen requested review of this revision.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95352

Files:
  llvm/include/llvm/Support/InstructionCost.h
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95352.318977.patch
Type: text/x-patch
Size: 5393 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210125/6ac8d980/attachment.bin>


More information about the llvm-commits mailing list