Skip to content

Commit 308e479

Browse files
committed
Use !CondContext.Invert instead of CondIsTrue
1 parent 4fa3cfe commit 308e479

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/include/llvm/Analysis/SimplifyQuery.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ struct InstrInfoQuery {
6262
struct CondContext {
6363
Value *Cond;
6464
bool Invert = false;
65-
// Condition is true if CxtI is in the true successor of Cond.
66-
bool CondIsTrue = false;
6765
SmallPtrSet<Value *, 4> AffectedValues;
6866

6967
CondContext(Value *Cond) : Cond(Cond) {}

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5015,7 +5015,7 @@ static KnownFPClass computeKnownFPClassFromContext(const Value *V,
50155015
KnownFPClass KnownFromContext;
50165016

50175017
if (Q.CC && Q.CC->AffectedValues.contains(V))
5018-
computeKnownFPClassFromCond(V, Q.CC->Cond, 0, Q.CC->CondIsTrue, Q.CxtI,
5018+
computeKnownFPClassFromCond(V, Q.CC->Cond, 0, !Q.CC->Invert, Q.CxtI,
50195019
KnownFromContext);
50205020

50215021
if (!Q.CxtI)

0 commit comments

Comments
 (0)