[AArch64] Replace return 0 with return false. NFC.

llvm-svn: 264185
This commit is contained in:
Chad Rosier 2016-03-23 20:07:28 +00:00
parent c7649dc749
commit 85c8594056
1 changed files with 3 additions and 3 deletions

View File

@ -2664,17 +2664,17 @@ static bool getMaddPatterns(MachineInstr &Root,
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;
}