[llvm] r218536 - R600/SI: Use break instead of continue

Matt Arsenault Matthew.Arsenault at amd.com
Fri Sep 26 10:55:14 PDT 2014


Author: arsenm
Date: Fri Sep 26 12:55:14 2014
New Revision: 218536

URL: http://llvm.org/viewvc/llvm-project?rev=218536&view=rev
Log:
R600/SI: Use break instead of continue

If an instruction doesn't have src1, it doesn't have src2

Modified:
    llvm/trunk/lib/Target/R600/SIInstrInfo.cpp

Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.cpp?rev=218536&r1=218535&r2=218536&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.cpp Fri Sep 26 12:55:14 2014
@@ -1397,7 +1397,7 @@ void SIInstrInfo::legalizeOperands(Machi
     for (unsigned i = 0; i < 3; ++i) {
       int Idx = VOP3Idx[i];
       if (Idx == -1)
-        continue;
+        break;
       MachineOperand &MO = MI->getOperand(Idx);
 
       if (MO.isReg()) {





More information about the llvm-commits mailing list