[PATCH] D84804: [SROA][Mem2Reg] Use efficient droppable use API (after D83976)
Tyker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 15:25:07 PDT 2020
Tyker added inline comments.
================
Comment at: llvm/lib/IR/Value.cpp:183
+void Value::dropDroppableUsesIn(User &Usr) {
+ for (Use &UsrOp : Usr.operands()) {
+ if (UsrOp.get() == this)
----------------
we could add an
assert(Usr->isDroppable());
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84804/new/
https://reviews.llvm.org/D84804
More information about the llvm-commits
mailing list