[llvm] [InstCombine] Convert @log to @llvm.log if the input is known positive. (PR #111428)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 12:57:05 PDT 2024
================
@@ -2797,22 +2813,21 @@ Value *LibCallSimplifier::optimizeSqrt(CallInst *CI, IRBuilderBase &B) {
}
Value *LibCallSimplifier::optimizeFMod(CallInst *CI, IRBuilderBase &B) {
- SimplifyQuery SQ(DL, TLI, DT, AC, CI, true, true, DC);
// fmod(x,y) can set errno if y == 0 or x == +/-inf, and returns Nan in those
// case. If we know those do not happen, then we can convert the fmod into
// frem.
bool IsNoNan = CI->hasNoNaNs();
if (!IsNoNan) {
+ SimplifyQuery SQ(DL, TLI, DT, AC, CI, true, true, DC);
----------------
davemgreen wrote:
This is unrelated, I'll push it separately.
https://github.com/llvm/llvm-project/pull/111428
More information about the llvm-commits
mailing list