NFC: Migrate LoopFlatten to work on InstructionCost.
authorSander de Smalen <sander.desmalen@arm.com>
Fri, 5 Feb 2021 12:01:21 +0000 (12:01 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Sat, 6 Feb 2021 11:47:04 +0000 (11:47 +0000)
commitae27274b2ffe47174290c07e8d8cd021c966d081
tree6c0ef7551f4d337845cc5b89a0272f7a5dc99dac
parent05c6c648ece36e222c0601206690d3a1358483f8
NFC: Migrate LoopFlatten to work on InstructionCost.

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

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D96029
llvm/lib/Transforms/Scalar/LoopFlatten.cpp