[llvm] [DAGCombiner] Limit EXTRACT(SETCC) combines in scalarizeExtractedBinOp to i1 types (PR #123071)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 19:41:11 PST 2025
================
@@ -22809,7 +22809,8 @@ static SDValue scalarizeExtractedBinOp(SDNode *ExtElt, SelectionDAG &DAG,
EVT ResVT = ExtElt->getValueType(0);
if (Opc == ISD::SETCC &&
- (ResVT != Vec.getValueType().getVectorElementType() || LegalTypes))
+ (ResVT != Vec.getValueType().getVectorElementType() || ResVT != MVT::i1 ||
----------------
arsenm wrote:
Just check TLI.getBooleanContents?
https://github.com/llvm/llvm-project/pull/123071
More information about the llvm-commits
mailing list