[PATCH] D13994: Optimization for pow(x, n) where n is some constant

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 17:58:54 PDT 2015


mgrang added inline comments.

================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:1077
@@ +1076,3 @@
+    PrevVal = Val;
+    Exp = Exp >> 1;
+  }
----------------
majnemer wrote:
> Please don't strength reduce manually.
Can you please clarify what do you mean by "don't strength reduce manually".


Repository:
  rL LLVM

http://reviews.llvm.org/D13994





More information about the llvm-commits mailing list