[llvm] [UniformityAnalysis] Add CallbackVH to keep UniformValues consistent on value deletion (PR #187658)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 06:48:13 PDT 2026


================
@@ -107,6 +143,15 @@ template <> void llvm::GenericUniformityAnalysisImpl<SSAContext>::initialize() {
     pushUsers(Arg);
 }
 
+template <>
+void llvm::GenericUniformityAnalysisImpl<SSAContext>::registerCallbacks() {
+  IRUniformValueCallbackManager *Manager =
+      new IRUniformValueCallbackManager(UniformValues);
+  for (const Value *V : UniformValues)
----------------
arsenm wrote:

This could be a huge amount of values. Do we really need to store some entry for all of them 

https://github.com/llvm/llvm-project/pull/187658


More information about the llvm-commits mailing list