forked from OSchip/llvm-project
[AArch64] Remove a redundant check. NFC.
The case AM.Scale == 0 is already handled by the code right above. Differential Revision: https://reviews.llvm.org/D28003 llvm-svn: 290275
This commit is contained in:
parent
78a07bfa66
commit
6bb0e39321
|
@ -7481,8 +7481,7 @@ bool AArch64TargetLowering::isLegalAddressingMode(const DataLayout &DL,
|
|||
|
||||
// Check reg1 + SIZE_IN_BYTES * reg2 and reg1 + reg2
|
||||
|
||||
return !AM.Scale || AM.Scale == 1 ||
|
||||
(AM.Scale > 0 && (uint64_t)AM.Scale == NumBytes);
|
||||
return AM.Scale == 1 || (AM.Scale > 0 && (uint64_t)AM.Scale == NumBytes);
|
||||
}
|
||||
|
||||
int AArch64TargetLowering::getScalingFactorCost(const DataLayout &DL,
|
||||
|
|
Loading…
Reference in New Issue