Skip to content

Commit 5218588

Browse files
committed
[X86]: Removed reversing of rewriting demorgan
1 parent e2032ef commit 5218588

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55615,10 +55615,12 @@ static SDValue combineAndnp(SDNode *N, SelectionDAG &DAG,
5561555615

5561655616
// Folds for better commutativity:
5561755617
if (N1->hasOneUse()) {
55618+
/*
5561855619
// ANDNP(x,NOT(y)) -> AND(NOT(x),NOT(y)) -> NOT(OR(X,Y)).
5561955620
if (SDValue Not = IsNOT(N1, DAG))
5562055621
return DAG.getNOT(
5562155622
DL, DAG.getNode(ISD::OR, DL, VT, N0, DAG.getBitcast(VT, Not)), VT);
55623+
*/
5562255624

5562355625
// ANDNP(x,PSHUFB(y,z)) -> PSHUFB(y,OR(z,x))
5562455626
// Zero out elements by setting the PSHUFB mask value to 0xFF.

0 commit comments

Comments
 (0)