[PATCH] D128591: Transforms: Relax restrictions on pow(x, y) expansion
Paul Osmialowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 07:53:34 PDT 2022
pawosm01 marked an inline comment as done.
pawosm01 added inline comments.
================
Comment at: llvm/include/llvm/IR/Operator.h:263
+ bool hasFiniteMath() const { return hasNoNaNs() && hasNoInfs(); }
+
----------------
david-arm wrote:
> nit: Hi, I think this probably needs a simple comment here, something like
>
> /// Test if this operation's arguments and results are assumed to be finite.
done
================
Comment at: llvm/test/Transforms/InstCombine/pow-4.ll:32
+;
+ %1 = call reassoc nnan ninf nsz double @llvm.pow.f64(double %x, double 3.000000e+00)
+ ret double %1
----------------
david-arm wrote:
> It looks like the `nsz` flag is not needed here because the transformation only depends upon `reassoc nnan ninf` I think?
yes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128591/new/
https://reviews.llvm.org/D128591
More information about the llvm-commits
mailing list