mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 08:12:12 +00:00
[AArch64] Replace return 0 with return false. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03d7c088c2
commit
7f0ee88e1f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user