================
@@ -109,6 +110,7 @@ class AMDGPUCodeGenPrepareImpl
   bool FlowChanged = false;
   mutable Function *SqrtF32 = nullptr;
   mutable Function *LdexpF32 = nullptr;
+  mutable SetVector<Value *> DeadVals;
----------------
Pierre-vh wrote:

I didn't use a set because I thought we could visit twice, I used one because I 
call the recursive delete function and I need to avoid cases where it may 
delete another instruction in that set (and then we visit a dead pointer).

I can use a vector + find of course if you prefer

https://github.com/llvm/llvm-project/pull/145484
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to