aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-04-30 16:53:20 +0100
committerJay Foad <jay.foad@amd.com>2020-05-04 10:54:07 +0100
commite737847b8fc36b6526ad6c7ceb65d0bd07358497 (patch)
tree73fe92e96b08d34cff2c78dcfbdb7c24c69bbab9 /clang/lib/Frontend/CompilerInvocation.cpp
parent8e9a8dc185be14246172ffc9b6b8c61a9d8d7cc4 (diff)
downloadllvm-e737847b8fc36b6526ad6c7ceb65d0bd07358497.zip
llvm-e737847b8fc36b6526ad6c7ceb65d0bd07358497.tar.gz
llvm-e737847b8fc36b6526ad6c7ceb65d0bd07358497.tar.bz2
[SLC] Allow llvm.pow(x,2.0) -> x*x etc even if no pow() lib func
optimizePow does not create any new calls to pow, so it should work regardless of whether the pow library function is available. This allows it to optimize the llvm.pow intrinsic on targets with no math library. Based on a patch by Tim Renouf. Differential Revision: https://reviews.llvm.org/D68231
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions