Skip to content

Commit 8e2a42a

Browse files
authored
[X86] Return from SimplifyDemandedBitsForTargetNode for X86ISD::CMOV/ANDP after computing KnownBits. NFC (#141992)
If we break out of the switch, I believe we fall back to the generic SimplifyDemandedBitsForTargetNode which will call computeKnownBitsForTargetNode. This will recurse again and calculate it's own KnownBits. Since we already did the recursion, we should keep the results.
1 parent 3c5c070 commit 8e2a42a

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
@@ -44789,7 +44789,7 @@ bool X86TargetLowering::SimplifyDemandedBitsForTargetNode(
4478944789

4479044790
// Only known if known in both the LHS and RHS.
4479144791
Known = Known.intersectWith(Known2);
44792-
break;
44792+
return false;
4479344793
}
4479444794
case X86ISD::BEXTR:
4479544795
case X86ISD::BEXTRI: {

0 commit comments

Comments
 (0)