This is an archive of the discontinued LLVM Phabricator instance.

[SimplifyLibCall] pow(x, 3.0) -> x*x*x
AbandonedPublic

Authored by mcrosier on Oct 22 2015, 3:15 PM.

Details

Reviewers
majnemer
Summary

Please take a look.

Chad

Diff Detail

Repository
rL LLVM

Event Timeline

mcrosier updated this revision to Diff 38182.Oct 22 2015, 3:15 PM
mcrosier retitled this revision from to [SimplifyLibCall] pow(x, 3.0) -> x*x*x.
mcrosier updated this object.
mcrosier added a reviewer: majnemer.
mcrosier set the repository for this revision to rL LLVM.
mcrosier added subscribers: llvm-commits, gberry.
mcrosier abandoned this revision.Oct 22 2015, 3:52 PM
joerg added a subscriber: joerg.Oct 22 2015, 4:32 PM

Am I reading this correctly and this transform is done by default? If yes, this seems to be a bit problematic, since it replaces a potentially correctly rounded operation with something that does rounding twice?

@joerg: you're correct. This should be guarded by fast math.