[PATCH] D50035: [SLC] Expand simplification of pow() for vector types

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 08:35:51 PDT 2018


evandro marked an inline comment as done.
evandro added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:1263-1265
+  // pow(x, n) -> x * x * x * ...
+  const APFloat *ExpoF;
+  if (Pow->isFast() && match(Expo, m_APFloat(ExpoF))) {
----------------
spatel wrote:
> Is there a test for this transform?
Will do.


https://reviews.llvm.org/D50035





More information about the llvm-commits mailing list