[PATCH] D49273: [InstCombine] Expand the simplification of pow() into exp2()

Andrei Elovikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 30 01:16:49 PDT 2018


a.elovikov added inline comments.


================
Comment at: llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp:1258
+    else
+      return emitUnaryFloatFnCall(FMul, TLI->getName(LibFunc_exp2), B, Attrs);
   }
----------------
Why don't we guard it with hasUnaryFloatFn similar to line 1264?


Repository:
  rL LLVM

https://reviews.llvm.org/D49273





More information about the llvm-commits mailing list