Skip to content

Commit 71a396e

Browse files
committed
Add comment.
1 parent 5abe500 commit 71a396e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,11 @@ SDValue DAGTypeLegalizer::PromoteIntOp_ExpOp(SDNode *N) {
25852585
: RTLIB::getLDEXP(N->getValueType(0));
25862586

25872587
if (LC == RTLIB::UNKNOWN_LIBCALL || !TLI.getLibcallName(LC)) {
2588+
// Scalarize vector FPOWI instead of promoting the type. This allows the
2589+
// scalar FPOWIs to be visited and converted to libcalls before promoting
2590+
// the type.
2591+
// FIXME: This should be done in LegalizeVectorOps/LegalizeDAG, but call
2592+
// lowering needs the unpromoted EVT.
25882593
if (IsPowI && N->getValueType(0).isVector())
25892594
return DAG.UnrollVectorOp(N);
25902595
SmallVector<SDValue, 3> NewOps(N->ops());

0 commit comments

Comments
 (0)