[PowerPC] Add parentheses to silence gcc warning

Without gcc 7.4 warns with

../lib/Target/PowerPC/PPCInstrInfo.cpp:2284:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          BaseOp1.isFI() &&
          ~~~~~~~~~~~~~~~^~
              "Only base registers and frame indices are supported.");
              ~
This commit is contained in:
Mikael Holmen
2020-09-08 08:05:47 +02:00
parent 28b9ace85f
commit ea795304ec

View File

@@ -2280,9 +2280,8 @@ bool PPCInstrInfo::shouldClusterMemOps(
assert(BaseOps1.size() == 1 && BaseOps2.size() == 1);
const MachineOperand &BaseOp1 = *BaseOps1.front();
const MachineOperand &BaseOp2 = *BaseOps2.front();
assert(BaseOp1.isReg() ||
BaseOp1.isFI() &&
"Only base registers and frame indices are supported.");
assert((BaseOp1.isReg() || BaseOp1.isFI()) &&
"Only base registers and frame indices are supported.");
// The NumLoads means the number of loads that has been clustered.
// Don't cluster memory op if there are already two ops clustered at least.