[all-commits] [llvm/llvm-project] 7854a1: [SimpleLoopUnswitch] Forget SCEVs for replaced phis.

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Nov 13 09:39:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7854a1abfd9a52dec0fe5d668e26de19614faefb
      https://github.com/llvm/llvm-project/commit/7854a1abfd9a52dec0fe5d668e26de19614faefb
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-11-13 (Sun, 13 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
    A llvm/test/Transforms/SimpleLoopUnswitch/pr58868-scev-invalidation-for-phis.ll

  Log Message:
  -----------
  [SimpleLoopUnswitch] Forget SCEVs for replaced phis.

Forget SCEVs based on exit phis in case SCEV looked through the phi.
After unswitching, it may not be possible to look through the phi due to
it having multiple incoming values, so it needs to be re-computed.

Fixes #58868




More information about the All-commits mailing list