Skip to content

Commit 685192d

Browse files
committed
Fixes for review.
1 parent e2c155d commit 685192d

File tree

3 files changed

+38
-391
lines changed

3 files changed

+38
-391
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,9 +2572,6 @@ SDValue DAGTypeLegalizer::PromoteIntOp_FRAMERETURNADDR(SDNode *N) {
25722572
}
25732573

25742574
SDValue DAGTypeLegalizer::PromoteIntOp_ExpOp(SDNode *N) {
2575-
if (N->getValueType(0).isVector())
2576-
return DAG.UnrollVectorOp(N);
2577-
25782575
bool IsStrict = N->isStrictFPOpcode();
25792576
SDValue Chain = IsStrict ? N->getOperand(0) : SDValue();
25802577

@@ -2588,6 +2585,8 @@ SDValue DAGTypeLegalizer::PromoteIntOp_ExpOp(SDNode *N) {
25882585
: RTLIB::getLDEXP(N->getValueType(0));
25892586

25902587
if (LC == RTLIB::UNKNOWN_LIBCALL || !TLI.getLibcallName(LC)) {
2588+
if (N->getValueType(0).isVector())
2589+
return DAG.UnrollVectorOp(N);
25912590
SmallVector<SDValue, 3> NewOps(N->ops());
25922591
NewOps[1 + OpOffset] = SExtPromotedInteger(N->getOperand(1 + OpOffset));
25932592
return SDValue(DAG.UpdateNodeOperands(N, NewOps), 0);

0 commit comments

Comments
 (0)