Skip to content

Commit 6c22bb3

Browse files
Update X86ISelLowering.cpp
1 parent 779ead3 commit 6c22bb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45880,8 +45880,7 @@ static SDValue scalarizeExtEltFP(SDNode *ExtElt, SelectionDAG &DAG,
4588045880
// with those here.
4588145881
// FIXME: This is restricted to pre type legalization. If we loosen this we
4588245882
// need to convert vector bool to a scalar bool.
45883-
if (DCI.getDAGCombineLevel() < llvm::AfterLegalizeTypes &&
45884-
Vec.getOpcode() == ISD::VSELECT &&
45883+
if (DCI.isBeforeLegalize() && Vec.getOpcode() == ISD::VSELECT &&
4588545884
Vec.getOperand(0).getOpcode() == ISD::SETCC &&
4588645885
Vec.getOperand(0).getOperand(0).getValueType() == VecVT) {
4588745886
assert(Vec.getOperand(0).getValueType().getScalarType() == MVT::i1 &&

0 commit comments

Comments
 (0)