[all-commits] [llvm/llvm-project] 23cbea: [TRE][NFC] Refactor shared state into member varia...

laytonio via All-commits all-commits at lists.llvm.org
Fri May 8 14:36:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 23cbea9a04e023d5b79dfee5964fae769340c993
      https://github.com/llvm/llvm-project/commit/23cbea9a04e023d5b79dfee5964fae769340c993
  Author: Layton Kifer <laytonkifer at gmail.com>
  Date:   2020-05-08 (Fri, 08 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp

  Log Message:
  -----------
  [TRE][NFC] Refactor shared state into member variables.

Separate functions that require shared state into a class to avoid
needing to pass them though multiple functions just to be available
where needed.

The main motivation for this is that we would like to remove the
limitation that accumulator values be dynamic constant, which would
require additional shared state between call eliminations in the same
function, compounding this issue.

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




More information about the All-commits mailing list