Skip to content

Commit 67c67cd

Browse files
authored
[ValueTracking][NFC]: Use injected condition to compute known FPClass (#139832)
1 parent de38c4e commit 67c67cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4594,6 +4594,10 @@ static KnownFPClass computeKnownFPClassFromContext(const Value *V,
45944594
const SimplifyQuery &Q) {
45954595
KnownFPClass KnownFromContext;
45964596

4597+
if (Q.CC && Q.CC->AffectedValues.contains(V))
4598+
computeKnownFPClassFromCond(V, Q.CC->Cond, 0, !Q.CC->Invert, Q.CxtI,
4599+
KnownFromContext);
4600+
45974601
if (!Q.CxtI)
45984602
return KnownFromContext;
45994603

0 commit comments

Comments
 (0)