]> granicus.if.org Git - llvm/commitdiff
[X86] Segment registers should have i16 type not i32.
authorCraig Topper <craig.topper@intel.com>
Fri, 26 Apr 2019 16:39:35 +0000 (16:39 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 26 Apr 2019 16:39:35 +0000 (16:39 +0000)
Probably doesn't really matter, but was inconsistent with the rest of the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359317 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index c01bf4db303c60855ff3587e6ca93bf8fe6279bf..55de3120b69d9cb9cef4a22a61322a6d2675746c 100644 (file)
@@ -296,7 +296,7 @@ namespace {
       if (AM.Segment.getNode())
         Segment = AM.Segment;
       else
-        Segment = CurDAG->getRegister(0, MVT::i32);
+        Segment = CurDAG->getRegister(0, MVT::i16);
     }
 
     // Utility function to determine whether we should avoid selecting