[all-commits] [llvm/llvm-project] 0bdf8c: [SCEV] Constant expansion cost at minsize

Sam Parker via All-commits all-commits at lists.llvm.org
Thu Sep 10 00:23:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0bdf8c9127244127aef3620a8ef1eb4d2be57dad
      https://github.com/llvm/llvm-project/commit/0bdf8c9127244127aef3620a8ef1eb4d2be57dad
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
    M llvm/test/Transforms/IndVarSimplify/ARM/indvar-unroll-imm-cost.ll

  Log Message:
  -----------
  [SCEV] Constant expansion cost at minsize

As code size is the only thing we care about at minsize, query the
cost of materialising immediates when calculating the cost of a SCEV
expansion. We also modify the CostKind to TCK_CodeSize for minsize,
instead of RecipThroughput.

Differential Revision: https://reviews.llvm.org/D76434




More information about the All-commits mailing list