[PATCH] Remove dead zero store to calloc initialized memory
Nick Lewycky
nicholas at mxc.ca
Sun Jun 29 13:30:18 PDT 2014
LGTM
================
Comment at: lib/Transforms/Scalar/DeadStoreElimination.cpp:537
@@ +536,3 @@
+ if (isCallocLikeFn(InstDep.getInst(), TLI) && isRemovable(SI)) {
+ Value* V = SI->getValueOperand();
+ if (isa<Constant>(V) && cast<Constant>(V)->isNullValue()) {
----------------
"Value* V" -> "Value *V"
http://reviews.llvm.org/D3942
More information about the llvm-commits
mailing list