[PATCH] D112717: [IR] Replace *all* uses of a constant expression by corresponding instruction
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 29 11:26:58 PDT 2021
rampitec added inline comments.
================
Comment at: llvm/lib/IR/ReplaceConstant.cpp:93
+ for (auto Item : Visited)
+ Item.first->removeDeadConstantUsers();
}
----------------
Why not to remove it immediately?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112717/new/
https://reviews.llvm.org/D112717
More information about the llvm-commits
mailing list