[llvm] r314648 - [X86] Fix copy pasto in X86FastISel::fastEmitInst_rrrr.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 1 22:46:53 PDT 2017
Author: ctopper
Date: Sun Oct 1 22:46:53 2017
New Revision: 314648
URL: http://llvm.org/viewvc/llvm-project?rev=314648&view=rev
Log:
[X86] Fix copy pasto in X86FastISel::fastEmitInst_rrrr.
The 4th operand was not being constrained and the third operand was being constrained twice.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=314648&r1=314647&r2=314648&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Sun Oct 1 22:46:53 2017
@@ -3970,7 +3970,7 @@ unsigned X86FastISel::fastEmitInst_rrrr(
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)
More information about the llvm-commits
mailing list