[llvm] r264185 - [AArch64] Replace return 0 with return false. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 13:07:29 PDT 2016


Author: mcrosier
Date: Wed Mar 23 15:07:28 2016
New Revision: 264185

URL: http://llvm.org/viewvc/llvm-project?rev=264185&view=rev
Log:
[AArch64] Replace return 0 with return false. NFC.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp?rev=264185&r1=264184&r2=264185&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp Wed Mar 23 15:07:28 2016
@@ -2664,17 +2664,17 @@ static bool getMaddPatterns(MachineInstr
   bool Found = false;
 
   if (!isCombineInstrCandidate(Opc))
-    return 0;
+    return false;
   if (isCombineInstrSettingFlag(Opc)) {
     int Cmp_NZCV = Root.findRegisterDefOperandIdx(AArch64::NZCV, true);
     // When NZCV is live bail out.
     if (Cmp_NZCV == -1)
-      return 0;
+      return false;
     unsigned NewOpc = convertFlagSettingOpcode(&Root);
     // When opcode can't change bail out.
     // CHECKME: do we miss any cases for opcode conversion?
     if (NewOpc == Opc)
-      return 0;
+      return false;
     Opc = NewOpc;
   }
 




More information about the llvm-commits mailing list