diff options
| author | Sander de Smalen <sander.desmalen@arm.com> | 2019-03-27 13:16:19 +0000 |
|---|---|---|
| committer | Sander de Smalen <sander.desmalen@arm.com> | 2019-03-27 13:16:19 +0000 |
| commit | 90d1b551e19ac5c913a3f8693d41149af0f84329 (patch) | |
| tree | d24e34dddb553d184f74041a9a3ebf3f8b57dbef /llvm/lib/IR/Verifier.cpp | |
| parent | bcc4d5383545430ab9767983b6deb05bd2bfc4a5 (diff) | |
| download | bcm5719-llvm-90d1b551e19ac5c913a3f8693d41149af0f84329.tar.gz bcm5719-llvm-90d1b551e19ac5c913a3f8693d41149af0f84329.zip | |
[AArch64] NFC: Cleanup isAArch64FrameOffsetLegal
Cleanup isAArch64FrameOffsetLegal by:
- Merging the large switch statement to reuse AArch64InstrInfo::getMemOpInfo().
- Using AArch64InstrInfo::getUnscaledLdSt() to determine whether an instruction
has an unscaled variant.
- Simplifying the logic that calculates the offset to fit the immediate.
Reviewers: paquette, evandro, eli.friedman, efriedma
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D59636
llvm-svn: 357064
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
0 files changed, 0 insertions, 0 deletions

