[PATCH] D72930: [FEnv] Constfold some unary constrained operations

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 21:44:24 PST 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/Analysis/ConstantFolding.cpp:1752
 
+    /// We only fold functions with finite arguments. Folding NaN and inf is
+    /// likely to be aborted with an exception anyway, and some host libms
----------------
Does moving this up change the behavior or non-constrained intrinsics?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72930





More information about the llvm-commits mailing list