NFC: Migrate LoopIdiomRecognize to work on InstructionCost
authorSander de Smalen <sander.desmalen@arm.com>
Thu, 21 Jan 2021 09:14:31 +0000 (09:14 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Sat, 6 Feb 2021 14:39:19 +0000 (14:39 +0000)
commit79a6cfc29eb35322152389e4eddb2e1a28aa038f
treef6839ba826401b98604279d990ef61aae9deec3f
parent0f435a544a60f53bf2b47ee7f9f8a6f7006bc606
NFC: Migrate LoopIdiomRecognize 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
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp