diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-01-30 07:54:16 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-01-30 07:54:16 +0000 |
commit | 625e89c8b0aa27d877c4f6871ba903abfde48442 (patch) | |
tree | 4eeb35472021164664670a0f1d54575397ce12f7 /llvm/lib | |
parent | 0e3a5cb14ac1614aab732877d12ca7917a32443a (diff) | |
download | bcm5719-llvm-625e89c8b0aa27d877c4f6871ba903abfde48442.tar.gz bcm5719-llvm-625e89c8b0aa27d877c4f6871ba903abfde48442.zip |
Use empty() instead of comparing size() with zero.
llvm-svn: 46554
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index ba0d1bdf2bd..2e6db3addfa 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -420,7 +420,7 @@ bool DSE::handleEndBlock(BasicBlock& BB, } else { // For any non-memory-affecting non-terminators, DCE them as we reach them Instruction *CI = BBI; - if (!CI->isTerminator() && CI->getNumUses() == 0 && !isa<FreeInst>(CI)) { + if (!CI->isTerminator() && CI->use_empty() && !isa<FreeInst>(CI)) { // DCE instructions only used to calculate that load for (Instruction::op_iterator OI = CI->op_begin(), OE = CI->op_end(); |