[all-commits] [llvm/llvm-project] 0aed0d: [LCSSA] Don't invalidate entire loop in SCEV

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Apr 28 03:17:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0aed0dbec2434d9d1a41266be009e56cc964633b
      https://github.com/llvm/llvm-project/commit/0aed0dbec2434d9d1a41266be009e56cc964633b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/LCSSA.cpp

  Log Message:
  -----------
  [LCSSA] Don't invalidate entire loop in SCEV

We already invalidate each individual instruction for which LCSSA
is formed in formLCSSAForInstructions(), so I don't see a reason
why we would need to invalidate the entire loop on top of that.

I believe we also no longer need the instruction-level invalidation
now that SCEV looks through LCSSA phis, but I'll leave that for a
separate patch, as it's less obvious.

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




More information about the All-commits mailing list