[all-commits] [llvm/llvm-project] d72eb9: [LoopDeletion] Invalidate SCEV after moving instru...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Sep 23 07:14:40 PDT 2022


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopDeletion.cpp
    A llvm/test/Transforms/LoopDeletion/pr57837-invalidate-scev-after-hoisting.ll

  Log Message:
  -----------
  [LoopDeletion] Invalidate SCEV after moving instruction.

LoopDeletion may hoist instructions out of a loop using
makeLoopInvariant without invalidating the SCEV for the moved
instruction.

Moving the instruction to a different block may change its
cached block disposition, so invalidate the cached info.

Fixes #57837.




More information about the All-commits mailing list