[llvm] [ValueTracking][NFC] Pass `SimplifyQuery` to `computeKnownFPClass` family (PR #80657)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 02:47:02 PST 2024
================
@@ -2167,7 +2167,8 @@ Value *LibCallSimplifier::replacePowWithSqrt(CallInst *Pow, IRBuilderBase &B) {
// pow(-Inf, 0.5) is optionally required to have a result of +Inf (not setting
// errno), but sqrt(-Inf) is required by various standards to set errno.
if (!Pow->doesNotAccessMemory() && !Pow->hasNoInfs() &&
- !isKnownNeverInfinity(Base, DL, TLI, 0, AC, Pow))
+ !isKnownNeverInfinity(Base, 0,
+ SimplifyQuery(DL, TLI, /*DT*/ nullptr, AC, Pow)))
----------------
arsenm wrote:
Nit: DT=
https://github.com/llvm/llvm-project/pull/80657
More information about the llvm-commits
mailing list