projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb78661
)
[X86] Fix copy pasto in X86FastISel::fastEmitInst_rrrr.
author
Craig Topper
<craig.topper@intel.com>
Mon, 2 Oct 2017 05:46:53 +0000
(
05:46
+0000)
committer
Craig 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.
llvm-svn: 314648
llvm/lib/Target/X86/X86FastISel.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86FastISel.cpp
b/llvm/lib/Target/X86/X86FastISel.cpp
index
85aa944
..
c3784fc
100644
(file)
--- 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);
- Op
2 = constrainOperandRegClass(II, Op2
, II.getNumDefs() + 3);
+ Op
3 = constrainOperandRegClass(II, Op3
, II.getNumDefs() + 3);
if (II.getNumDefs() >= 1)
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg)