[PATCH] D149587: InstSimplify: Simplifications for ldexp

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 02:28:28 PDT 2023


foad added inline comments.


================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:6103
+  if (!IsStrict) {
+    // ldexp(undef, x) -> nan
+    if (Q.isUndefValue(Op0))
----------------
I still don't understand why this one isn't strictfp-safe, if you simplify -> qnan.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149587/new/

https://reviews.llvm.org/D149587



More information about the llvm-commits mailing list