[PATCH] D111533: [SCEV] Invalidate user SCEVs along with operand SCEVs to avoid cache corruption

Danila Malyutin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 21 06:46:18 PDT 2021


danilaml added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:4103-4106
+    if (!SCEVUsers.count(Op)) {
+      SmallPtrSet<const SCEV *, 16> Users;
+      SCEVUsers[Op] = std::move(Users);
+    }
----------------
Why is this `if` needed?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111533/new/

https://reviews.llvm.org/D111533



More information about the llvm-commits mailing list