[all-commits] [llvm/llvm-project] 9a456b: [IndVars] Forget SCEV for replaced PHI.

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Nov 4 11:42:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a456b7ad3125834377b8aab1598785e8559c224
      https://github.com/llvm/llvm-project/commit/9a456b7ad3125834377b8aab1598785e8559c224
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
    M llvm/test/Transforms/IndVarSimplify/invalidate-modified-lcssa-phi.ll

  Log Message:
  -----------
  [IndVars] Forget SCEV for replaced PHI.

Additional SCEV verification highlighted a case where the cached loop
dispositions where incorrect after simplifying a phi node in IndVars.
Fix it by invalidating the phi before replacing it.

Fixes #58750




More information about the All-commits mailing list