[llvm] r349330 - [X86] Fix bad operand lookup for cmov introduced in r349315
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 16 22:40:35 PST 2018
Author: ctopper
Date: Sun Dec 16 22:40:35 2018
New Revision: 349330
URL: http://llvm.org/viewvc/llvm-project?rev=349330&view=rev
Log:
[X86] Fix bad operand lookup for cmov introduced in r349315
The CC is operand 2 not operand 3.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=349330&r1=349329&r2=349330&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Dec 16 22:40:35 2018
@@ -39933,7 +39933,7 @@ static bool needCarryOrOverflowFlag(SDVa
CC = (X86::CondCode)User->getConstantOperandVal(2);
break;
case X86ISD::CMOV:
- CC = (X86::CondCode)User->getConstantOperandVal(3);
+ CC = (X86::CondCode)User->getConstantOperandVal(2);
break;
}
More information about the llvm-commits
mailing list