[PATCH] D67300: [ConstantFolding] Fold constant calls to log2()

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 15:09:23 PDT 2019


efriedma added a comment.

I'm not really happy with adding more uses of ConstantFoldFP/ConstantFoldBinaryFP; they're flawed because they produce results that depend on the host's libm implementation.  But I guess there isn't any reason to support log and not log2.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D67300





More information about the llvm-commits mailing list