[llvm] 1198c3a - [X86] PromoteMaskArithmetic - use ISD::isBitwiseLogicOp wrapper. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 02:34:36 PST 2024
Author: Simon Pilgrim
Date: 2024-02-09T10:34:25Z
New Revision: 1198c3aaff63d4ce63b760b4effc14babc0bdd8a
URL: https://github.com/llvm/llvm-project/commit/1198c3aaff63d4ce63b760b4effc14babc0bdd8a
DIFF: https://github.com/llvm/llvm-project/commit/1198c3aaff63d4ce63b760b4effc14babc0bdd8a.diff
LOG: [X86] PromoteMaskArithmetic - use ISD::isBitwiseLogicOp wrapper. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index f310010ee87ed8..881524fa77180c 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -48012,8 +48012,7 @@ static SDValue PromoteMaskArithmetic(SDNode *N, EVT VT, SelectionDAG &DAG,
if (Depth >= SelectionDAG::MaxRecursionDepth)
return SDValue();
- if (N->getOpcode() != ISD::XOR && N->getOpcode() != ISD::AND &&
- N->getOpcode() != ISD::OR)
+ if (!ISD::isBitwiseLogicOp(N->getOpcode()))
return SDValue();
SDValue N0 = N->getOperand(0);
More information about the llvm-commits
mailing list