Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17271,8 +17271,9 @@ SDValue DAGCombiner::visitFSUB(SDNode *N) {
// prefer it.
SDValue DAGCombiner::combineFMulOrFDivWithIntPow2(SDNode *N) {
EVT VT = N->getValueType(0);
if (!Type::getFloatingPointTy(*DAG.getContext(), VT.getFltSemantics())
->isIEEELikeFPTy())
const fltSemantics &Sem = VT.getFltSemantics();
if (&Sem == &APFloat::x87DoubleExtended() ||
&Sem == &APFloat::PPCDoubleDouble())
return SDValue();

SDValue ConstOp, Pow2Op;
Expand Down