]> granicus.if.org Git - llvm/commitdiff
[X86] Fix a mistake in the X86ISelDAGToDAG.cpp code for MUL8r/IMUL8r.
authorCraig Topper <craig.topper@intel.com>
Sat, 28 Oct 2017 19:56:57 +0000 (19:56 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 28 Oct 2017 19:56:57 +0000 (19:56 +0000)
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

lib/Target/X86/X86ISelDAGToDAG.cpp

index d1f901e5da14eb315f397286f2e8fa3dcf9044d4..e43fd508de30c5d89e3638fbc94fd86da910258b 100644 (file)
@@ -2728,7 +2728,7 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
       // Get the low part if needed. Don't use getCopyFromReg for aliasing
       // registers.
       if (!SDValue(Node, 0).use_empty())
-        ReplaceUses(SDValue(Node, 1),
+        ReplaceUses(SDValue(Node, 0),
           CurDAG->getTargetExtractSubreg(X86::sub_8bit, dl, MVT::i8, Result));
 
       // Shift AX down 8 bits.