[all-commits] [llvm/llvm-project] f75cca: [LSR] Create SCEVExpander earlier, use member isSa...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 15 00:41:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f75ccadcdd87328b946e43c8e88ccf3c8188ff4f
      https://github.com/llvm/llvm-project/commit/f75ccadcdd87328b946e43c8e88ccf3c8188ff4f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-15 (Fri, 15 Jul 2022)

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

  Log Message:
  -----------
  [LSR] Create SCEVExpander earlier, use member isSafeToExpand() (NFC)

This is a followup to D129630, which switches LSR to the member
isSafeToExpand() variant, and removes the freestanding function.

This is done by creating the SCEVExpander early (already during the
analysis phase). Because the SCEVExpander is now available for the
whole lifetime of LSRInstance, I've also made it into a member
variable, rather than passing it around in even more places.

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




More information about the All-commits mailing list