[llvm] r359317 - [X86] Segment registers should have i16 type not i32.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 26 09:39:35 PDT 2019
Author: ctopper
Date: Fri Apr 26 09:39:35 2019
New Revision: 359317
URL: http://llvm.org/viewvc/llvm-project?rev=359317&view=rev
Log:
[X86] Segment registers should have i16 type not i32.
Probably doesn't really matter, but was inconsistent with the rest of the code.
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=359317&r1=359316&r2=359317&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Fri Apr 26 09:39:35 2019
@@ -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
More information about the llvm-commits
mailing list