mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use do+while instead of while for loops which obviously have a
non-zero trip count. Use SmallVector's pop_back_val(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,8 +62,7 @@ bool ADCE::runOnFunction(Function& F) {
|
||||
|
||||
// Propagate liveness backwards to operands.
|
||||
while (!worklist.empty()) {
|
||||
Instruction* curr = worklist.back();
|
||||
worklist.pop_back();
|
||||
Instruction* curr = worklist.pop_back_val();
|
||||
|
||||
for (Instruction::op_iterator OI = curr->op_begin(), OE = curr->op_end();
|
||||
OI != OE; ++OI)
|
||||
|
Reference in New Issue
Block a user