[SLC] Support expanding pow(x, n+0.5) to x * x * ... * sqrt(x)
authorFlorian Hahn <florian.hahn@arm.com>
Mon, 3 Sep 2018 17:37:39 +0000 (17:37 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Mon, 3 Sep 2018 17:37:39 +0000 (17:37 +0000)
commitcc9dc599ba910cca86f53890ee74d02f6229b5bc
tree2e1ba2f03a67d1b179510dbdc4b68cd3cf36ab57
parentf53448538783674180eea41b1a82d8b035bc2a38
[SLC] Support expanding pow(x, n+0.5) to x * x * ... * sqrt(x)

Reviewers: evandro, efriedma, spatel

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D51435

llvm-svn: 341330
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/pow-4.ll