Skip to content

Commit 411f29d

Browse files
committedAug 14, 2017
[X86] Fix a place that was mishandling X86ISD::UMUL.
According to the X86ISelLowering.h, UMUL results are low, high, and flags. But this place was treating result 1 or 2 as flags. Differential Revision: https://reviews.llvm.org/D36654 llvm-svn: 310846
1 parent c047182 commit 411f29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17604,7 +17604,7 @@ static bool isX86LogicalCmp(SDValue Op) {
1760417604
return true;
1760517605
if (Op.getResNo() == 1 &&
1760617606
(Opc == X86ISD::ADD || Opc == X86ISD::SUB || Opc == X86ISD::ADC ||
17607-
Opc == X86ISD::SBB || Opc == X86ISD::SMUL || Opc == X86ISD::UMUL ||
17607+
Opc == X86ISD::SBB || Opc == X86ISD::SMUL ||
1760817608
Opc == X86ISD::INC || Opc == X86ISD::DEC || Opc == X86ISD::OR ||
1760917609
Opc == X86ISD::XOR || Opc == X86ISD::AND))
1761017610
return true;

0 commit comments

Comments
 (0)
Please sign in to comment.