Skip to content

Commit dd26222

Browse files
committed
[X86] Use MVT::i32 for the type of a MOV32r0 created in X86DAGToDAGISel::Select.
Not sure if this really matters. The VT isn't really used after this point. At best it might affect CSE.
1 parent dbcc139 commit dd26222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4946,7 +4946,8 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
49464946
SDValue(CurDAG->getMachineNode(SExtOpcode, dl, MVT::Glue, InFlag),0);
49474947
} else {
49484948
// Zero out the high part, effectively zero extending the input.
4949-
SDValue ClrNode = SDValue(CurDAG->getMachineNode(X86::MOV32r0, dl, NVT), 0);
4949+
SDValue ClrNode =
4950+
SDValue(CurDAG->getMachineNode(X86::MOV32r0, dl, MVT::i32), 0);
49504951
switch (NVT.SimpleTy) {
49514952
case MVT::i16:
49524953
ClrNode =

0 commit comments

Comments
 (0)