Skip to content

Commit

Permalink
RISCV/ISel: don't unnecessarily freeze Src
Browse files Browse the repository at this point in the history
  • Loading branch information
artagnon committed Oct 18, 2023
1 parent 7c21342 commit c972134
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2965,9 +2965,6 @@ static SDValue lowerVectorXRINT(SDValue Op, SelectionDAG &DAG,
Src = convertToScalableVector(ContainerVT, Src, DAG, Subtarget);
}

// Freeze the source since we are increasing the number of uses.
Src = DAG.getFreeze(Src);

auto [Mask, VL] = getDefaultVLOps(VT, ContainerVT, DL, DAG, Subtarget);
SDValue Truncated =
DAG.getNode(RISCVISD::VFCVT_X_F_VL, DL, ContainerVT, Src, Mask, VL);
Expand Down

0 comments on commit c972134

Please sign in to comment.