[all-commits] [llvm/llvm-project] 9933a2: [SCEVExpander] Move LCSSA fixup to ::expand.

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Sep 29 12:50:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9933a2e9fd0c37dcdce5952fab7e486d3cf2d336
      https://github.com/llvm/llvm-project/commit/9933a2e9fd0c37dcdce5952fab7e486d3cf2d336
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
    M llvm/test/Transforms/IndVarSimplify/lcssa-preservation.ll
    M llvm/test/Transforms/LoopVectorize/skeleton-lcssa-crash.ll

  Log Message:
  -----------
  [SCEVExpander] Move LCSSA fixup to ::expand.

Move LCSSA fixup from ::expandCodeForImpl to ::expand(). This has
the advantage that we directly preserve LCSSA nodes here instead of
relying on doing so in rememberInstruction. It also ensures that we
 don't add the non-LCSSA-safe value to InsertedExpressions.

Alternative to D132704.

Fixes #57000.

Reviewed By: efriedma

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




More information about the All-commits mailing list