[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.

llvm-svn: 359317

llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

index c01bf4d..55de312 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