[PATCH] D49040: [SLC] Simplify pow(x, 0.333...) to cbrt(x)
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 6 14:07:17 PDT 2018
lebedev.ri added a comment.
Tests?
================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:1138-1139
+
+ const APFloat SPPlusThird(1.0f / 3.0f), SPMinusThird(-1.0f / 3.0f),
+ DPPlusThird(1.0 / 3.0), DPMinusThird(-1.0 / 3.0);
+ bool isPlusThird = Arg2C->isExactlyValue((TyID == Type::FloatTyID)
----------------
There seems to be two variants: https://godbolt.org/g/Rw1Gxt
Can you output the value that doesn't match?
Repository:
rL LLVM
https://reviews.llvm.org/D49040
More information about the llvm-commits
mailing list