From: Craig Topper Date: Fri, 26 Apr 2019 16:39:35 +0000 (+0000) Subject: [X86] Segment registers should have i16 type not i32. X-Git-Tag: llvmorg-10-init~6913 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad662cf4c18866902a8698b5b020448211946d01;p=platform%2Fupstream%2Fllvm.git [X86] Segment registers should have i16 type not i32. Probably doesn't really matter, but was inconsistent with the rest of the code. llvm-svn: 359317 --- diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index c01bf4d..55de312 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -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