Skip to content

Commit 9bedece

Browse files
committed
[LegalizeTypes] Use correct type for constant in PromoteIntRes_FunnelShift.
This is a typo from #158553. We should use AmtVT instead of VT. I guess VT and AmtVT are always the same at this point for tested targets.
1 parent 4a8bb08 commit 9bedece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_FunnelShift(SDNode *N) {
16311631
// type.
16321632
if (IsFSHR)
16331633
Amt = DAG.getNode(ISD::ADD, DL, AmtVT, Amt,
1634-
DAG.getConstant(NewBits - OldBits, DL, VT));
1634+
DAG.getConstant(NewBits - OldBits, DL, AmtVT));
16351635

16361636
return DAG.getNode(Opcode, DL, VT, Hi, Lo, Amt);
16371637
}

0 commit comments

Comments
 (0)