[PATCH] D75008: [InstCombine] DCE instructions earlier
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 07:32:51 PST 2020
spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineInternal.h:727
if (auto *Inst = dyn_cast<Instruction>(Operand))
- Worklist.push(Inst);
+ Worklist.add(Inst);
}
----------------
I guess it's independent of this patch, but I'm confused about when it's appropriate to push() vs. add(). Will we eventually reach a state where push() is private to the worklist implementation, and all the user code should use add()?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75008/new/
https://reviews.llvm.org/D75008
More information about the llvm-commits
mailing list