[llvm] r295229 - [AArch64] Make am_ldrlit an iPTR - not OtherVT - operand. NFC-ish.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 12:38:31 PST 2017


Author: ab
Date: Wed Feb 15 14:38:31 2017
New Revision: 295229

URL: http://llvm.org/viewvc/llvm-project?rev=295229&view=rev
Log:
[AArch64] Make am_ldrlit an iPTR - not OtherVT - operand. NFC-ish.

am_ldrlit diverged from am_brcond in r207105, but kept the OtherVT
operand type.  It made sense for branch targets, as those are
represented as MVT::Other in SDAG.  But loads operate on pointers.

This shouldn't have an observable effect on any in-tree code, but helps
make the patterns consistent for external users.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstrFormats.td

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstrFormats.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstrFormats.td?rev=295229&r1=295228&r2=295229&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrFormats.td (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrFormats.td Wed Feb 15 14:38:31 2017
@@ -2454,7 +2454,7 @@ class PrefetchUI<bits<2> sz, bit V, bits
 
 // Load literal address: 19-bit immediate. The low two bits of the target
 // offset are implied zero and so are not part of the immediate.
-def am_ldrlit : Operand<OtherVT> {
+def am_ldrlit : Operand<iPTR> {
   let EncoderMethod = "getLoadLiteralOpValue";
   let DecoderMethod = "DecodePCRelLabel19";
   let PrintMethod = "printAlignedLabel";




More information about the llvm-commits mailing list