Skip to content

Commit a50ab86

Browse files
author
Thomas Preud'homme
committed
Revert STRICT_FCMP nonan optimisation
Summary: This reverts commit b7b61a7 which fails on some of the builders: http://lab.llvm.org:8011/#/builders/14/builds/5806 Reviewers: Subscribers:
1 parent b7b61a7 commit a50ab86

File tree

2 files changed

+1
-171
lines changed

2 files changed

+1
-171
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -7125,10 +7125,7 @@ void SelectionDAGBuilder::visitConstrainedFPIntrinsic(
71257125
case ISD::STRICT_FSETCC:
71267126
case ISD::STRICT_FSETCCS: {
71277127
auto *FPCmp = dyn_cast<ConstrainedFPCmpIntrinsic>(&FPI);
7128-
ISD::CondCode Condition = getFCmpCondCode(FPCmp->getPredicate());
7129-
if (TM.Options.NoNaNsFPMath)
7130-
Condition = getFCmpCodeWithoutNaN(Condition);
7131-
Opers.push_back(DAG.getCondCode(Condition));
7128+
Opers.push_back(DAG.getCondCode(getFCmpCondCode(FPCmp->getPredicate())));
71327129
break;
71337130
}
71347131
}

llvm/test/CodeGen/AArch64/arm64-constrained-fcmp-no-nans-opt.ll

-167
This file was deleted.

0 commit comments

Comments
 (0)