diff options
| author | Haicheng Wu <haicheng@codeaurora.org> | 2016-12-21 21:40:47 +0000 |
|---|---|---|
| committer | Haicheng Wu <haicheng@codeaurora.org> | 2016-12-21 21:40:47 +0000 |
| commit | 6bb0e39321329809c591bb433583f3969b2b08af (patch) | |
| tree | 9d55b9f105ddb24248a7a97bb3e8b5bc48d77432 /llvm/lib | |
| parent | 78a07bfa66e673ae766f8dfb7dd4f9bebba8fce6 (diff) | |
| download | bcm5719-llvm-6bb0e39321329809c591bb433583f3969b2b08af.tar.gz bcm5719-llvm-6bb0e39321329809c591bb433583f3969b2b08af.zip | |
[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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 4dff402ba70..c8200c23d49 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -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, |

