summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-10-02 05:46:53 +0000
committerCraig Topper <craig.topper@intel.com>2017-10-02 05:46:53 +0000
commitd37625859a6a663c33390e6a15ad5eca46579bc3 (patch)
treef062f60eb387c55345e28f35793a9eda0574fecc /llvm/lib/Target/X86/X86FastISel.cpp
parentbb7866162cb0b63d75eb6eae1fa9ea6fca38aa37 (diff)
downloadbcm5719-llvm-d37625859a6a663c33390e6a15ad5eca46579bc3.tar.gz
bcm5719-llvm-d37625859a6a663c33390e6a15ad5eca46579bc3.zip
[X86] Fix copy pasto in X86FastISel::fastEmitInst_rrrr.
The 4th operand was not being constrained and the third operand was being constrained twice. llvm-svn: 314648
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 85aa944c465..c3784fc77ff 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -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)
OpenPOWER on IntegriCloud