]> granicus.if.org Git - llvm/commitdiff
[X86] Fix copy pasto in X86FastISel::fastEmitInst_rrrr.
authorCraig Topper <craig.topper@intel.com>
Mon, 2 Oct 2017 05:46:53 +0000 (05:46 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 2 Oct 2017 05:46:53 +0000 (05:46 +0000)
The 4th operand was not being constrained and the third operand was being constrained twice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index 85aa944c46532471cef9bab40e35cf75a2b807c8..c3784fc77ffe2318b666c58424e4b8f3f7e79500 100644 (file)
@@ -3970,7 +3970,7 @@ unsigned X86FastISel::fastEmitInst_rrrr(unsigned MachineInstOpcode,
   Op0 = constrainOperandRegClass(II, Op0, II.getNumDefs());
   Op1 = constrainOperandRegClass(II, Op1, II.getNumDefs() + 1);
   Op2 = constrainOperandRegClass(II, Op2, II.getNumDefs() + 2);
-  Op2 = constrainOperandRegClass(II, Op2, II.getNumDefs() + 3);
+  Op3 = constrainOperandRegClass(II, Op3, II.getNumDefs() + 3);
 
   if (II.getNumDefs() >= 1)
     BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg)