File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18209,9 +18209,8 @@ SDValue DAGCombiner::combineRepeatedFPDivisors(SDNode *N) {
18209
18209
// TODO: Limit this transform based on optsize/minsize - it always creates at
18210
18210
// least 1 extra instruction. But the perf win may be substantial enough
18211
18211
// that only minsize should restrict this.
18212
- bool UnsafeMath = DAG.getTarget().Options.UnsafeFPMath;
18213
18212
const SDNodeFlags Flags = N->getFlags();
18214
- if (LegalDAG || (!UnsafeMath && ! Flags.hasAllowReciprocal() ))
18213
+ if (LegalDAG || ! Flags.hasAllowReciprocal())
18215
18214
return SDValue();
18216
18215
18217
18216
// Skip if current node is a reciprocal/fneg-reciprocal.
@@ -18248,7 +18247,7 @@ SDValue DAGCombiner::combineRepeatedFPDivisors(SDNode *N) {
18248
18247
18249
18248
// This division is eligible for optimization only if global unsafe math
18250
18249
// is enabled or if this division allows reciprocal formation.
18251
- if (UnsafeMath || U->getFlags().hasAllowReciprocal())
18250
+ if (U->getFlags().hasAllowReciprocal())
18252
18251
Users.insert(U);
18253
18252
}
18254
18253
}
You can’t perform that action at this time.
0 commit comments