commit | d2d1ae105d34209682d794c367f1df1cb23711c5 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Jun 22 15:08:57 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Jun 22 15:08:57 2010 +0000 |
tree | 940f256bdfe3a69cf8ee0f56294046e10bdc6376 | |
parent | a46d66122ff571006ba7ce77ed5b5ad04b113c8a [diff] [blame] |
Use pre-increment instead of post-increment when the result is not used. llvm-svn: 106542
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp index 5a49841..2d19467 100644 --- a/llvm/lib/Transforms/Scalar/ADCE.cpp +++ b/llvm/lib/Transforms/Scalar/ADCE.cpp
@@ -83,7 +83,7 @@ for (SmallVector<Instruction*, 1024>::iterator I = worklist.begin(), E = worklist.end(); I != E; ++I) { - NumRemoved++; + ++NumRemoved; (*I)->eraseFromParent(); }