diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp index 5314dada04a5..1dd946a421f4 100644 --- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp @@ -3163,15 +3163,15 @@ void PPC32ISel::visitCastInst(CastInst &CI) { // emit them, as the store instruction will implicitly not store the zero or // sign extended bytes. if (SrcClass <= cInt && SrcClass >= DestClass) { - bool AllUsesAreStoresOrSetCC = true; + bool AllUsesAreStores = true; for (Value::use_iterator I = CI.use_begin(), E = CI.use_end(); I != E; ++I) - if (!isa(*I) && !isa(*I)) { - AllUsesAreStoresOrSetCC = false; + if (!isa(*I)) { + AllUsesAreStores = false; break; } // Turn this cast directly into a move instruction, which the register // allocator will deal with. - if (AllUsesAreStoresOrSetCC) { + if (AllUsesAreStores) { unsigned SrcReg = getReg(Op, BB, MI); BuildMI(*BB, MI, PPC::OR, 2, DestReg).addReg(SrcReg).addReg(SrcReg); return;