We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b888fd8 commit 15c24c6Copy full SHA for 15c24c6
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -8104,7 +8104,7 @@ Instruction *InstCombinerImpl::visitFCmpInst(FCmpInst &I) {
8104
case FCmpInst::FCMP_ULE:
8105
// fcmp pred (x - y), 0 --> fcmp pred x, y
8106
if (match(RHSC, m_AnyZeroFP()) &&
8107
- match(LHSI, m_FSub(m_Value(X), m_Value(Y))) &&
+ match(LHSI, m_OneUse(m_FSub(m_Value(X), m_Value(Y)))) &&
8108
I.getFunction()->getDenormalMode(
8109
LHSI->getType()->getScalarType()->getFltSemantics()) ==
8110
DenormalMode::getIEEE()) {
0 commit comments