[all-commits] [llvm/llvm-project] 928c4b: [SCEV] Refactor isHighCostExpansionHelper

Sam Parker via All-commits all-commits at lists.llvm.org
Mon Sep 7 03:58:34 PDT 2020


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

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

  Log Message:
  -----------
  [SCEV] Refactor isHighCostExpansionHelper

To enable the cost of constants, the helper function has been
reorganised:
- A struct has been introduced to hold SCEV operand information so
  that we know the user of the operand, as well as the operand index.
  The Worklist now uses instead instead of a bare SCEV.
- The costing of each SCEV, and collection of its operands, is now
  performed in a helper function.

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




More information about the All-commits mailing list