From: Matt Arsenault Date: Fri, 26 Sep 2014 17:55:14 +0000 (+0000) Subject: R600/SI: Use break instead of continue X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=07b7c98d6102a37229538f78ab9f4651f80ccaaf;p=oota-llvm.git R600/SI: Use break instead of continue If an instruction doesn't have src1, it doesn't have src2 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218536 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIInstrInfo.cpp b/lib/Target/R600/SIInstrInfo.cpp index ed4884f037b..1917a58107e 100644 --- a/lib/Target/R600/SIInstrInfo.cpp +++ b/lib/Target/R600/SIInstrInfo.cpp @@ -1397,7 +1397,7 @@ void SIInstrInfo::legalizeOperands(MachineInstr *MI) const { for (unsigned i = 0; i < 3; ++i) { int Idx = VOP3Idx[i]; if (Idx == -1) - continue; + break; MachineOperand &MO = MI->getOperand(Idx); if (MO.isReg()) {