[PATCH] D92238: [SCEVExpander] Migrate costAndCollectOperands to use InstructionCost.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 27 10:06:58 PST 2020

sdesmalen created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
sdesmalen requested review of this revision.

This patch changes the type of BudgetRemaining and Cost in
costAndCollectOperands from 'unsigned' to 'InstructionCost' so that it
can take into account an Invalid cost. isHighCostExpansion will return
true if the cost is invalid, but the patch is NFC until any of the cost
functions return a Invalid cost.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92238.308086.patch
Type: text/x-patch
Size: 5223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201127/62191474/attachment.bin>

More information about the llvm-commits mailing list