Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit a101cd0

Browse files
committed
[X86] Fix a mistake in the X86ISelDAGToDAG.cpp code for MUL8r/IMUL8r.
I think this code is unreachable due to some promotions that occur elsewhere. I'll look into that to be sure, but for now I thought I should at least fix the obvious typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316840 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 4a6c7d6 commit a101cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/X86/X86ISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
27282728
// Get the low part if needed. Don't use getCopyFromReg for aliasing
27292729
// registers.
27302730
if (!SDValue(Node, 0).use_empty())
2731-
ReplaceUses(SDValue(Node, 1),
2731+
ReplaceUses(SDValue(Node, 0),
27322732
CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result));
27332733

27342734
// Shift AX down 8 bits.

0 commit comments

Comments
 (0)