[all-commits] [llvm/llvm-project] a56404: [SCEV] Properly clean up duplicated FoldCacheUser ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Dec 27 16:10:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a564048899a1a1de526a02cfd1a5d691ec31bafd
      https://github.com/llvm/llvm-project/commit/a564048899a1a1de526a02cfd1a5d691ec31bafd
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-12-28 (Wed, 28 Dec 2022)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/IVUsers/zext-fold-cache-invalidation.ll

  Log Message:
  -----------
  [SCEV] Properly clean up duplicated FoldCacheUser ID entries.

The current code did not properly handled duplicated FoldCacheUser ID
entries when overwriting an existing entry in the FoldCache.

This triggered verification failures reported by @uabelho and #59721.

The patch fixes that by removing stale IDs when overwriting an existing
entry in the cache.

Fixes #59721.




More information about the All-commits mailing list