[llvm] r271480 - [X86] Use uint16_t for a couple arrays of instruction opcodes. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 21:19:43 PDT 2016


Author: ctopper
Date: Wed Jun  1 23:19:42 2016
New Revision: 271480

URL: http://llvm.org/viewvc/llvm-project?rev=271480&view=rev
Log:
[X86] Use uint16_t for a couple arrays of instruction opcodes. NFC

Modified:
    llvm/trunk/lib/Target/X86/X86FastISel.cpp

Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=271480&r1=271479&r2=271480&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Wed Jun  1 23:19:42 2016
@@ -2623,7 +2623,7 @@ bool X86FastISel::fastLowerIntrinsicCall
     unsigned ResultReg = 0;
     // Check if we have an immediate version.
     if (const auto *CI = dyn_cast<ConstantInt>(RHS)) {
-      static const unsigned Opc[2][4] = {
+      static const uint16_t Opc[2][4] = {
         { X86::INC8r, X86::INC16r, X86::INC32r, X86::INC64r },
         { X86::DEC8r, X86::DEC16r, X86::DEC32r, X86::DEC64r }
       };
@@ -2717,7 +2717,7 @@ bool X86FastISel::fastLowerIntrinsicCall
     if (!isTypeLegal(RetTy, VT))
       return false;
 
-    static const unsigned CvtOpc[2][2][2] = {
+    static const uint16_t CvtOpc[2][2][2] = {
       { { X86::CVTTSS2SIrr,   X86::VCVTTSS2SIrr   },
         { X86::CVTTSS2SI64rr, X86::VCVTTSS2SI64rr }  },
       { { X86::CVTTSD2SIrr,   X86::VCVTTSD2SIrr   },




More information about the llvm-commits mailing list