[llvm] [NewGVN][1/3] Load coercion between load and store (PR #68659)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 07:36:30 PDT 2023
================
@@ -653,6 +658,16 @@ class NewGVN {
// Deletion info.
SmallPtrSet<Instruction *, 8> InstructionsToErase;
+ // Map candidate load to their depending instructions.
+ mutable std::map<Value *, DenseSet<std::pair<Instruction *, BasicBlock *>>>
+ LoadCoercion;
+
----------------
ManuelJBrito wrote:
I don't quite understand the logic of keeping a set o dependent instructions. AFAICT the size of this set will always be at most 1.
https://github.com/llvm/llvm-project/pull/68659
More information about the llvm-commits
mailing list