[PATCH] D59635: [AArch64] NFC: Cleanup isAArch64FrameOffsetLegal

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 04:34:09 PDT 2019


sdesmalen created this revision.
sdesmalen added reviewers: paquette, evandro, eli.friedman.
Herald added subscribers: kristof.beyls, javed.absar.

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.


https://reviews.llvm.org/D59635

Files:
  lib/Target/AArch64/AArch64InstrInfo.cpp
  lib/Target/AArch64/AArch64InstrInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59635.191662.patch
Type: text/x-patch
Size: 11620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190321/62fd907b/attachment.bin>


More information about the llvm-commits mailing list