Skip to content
Commit 39f18e54 authored by Chris Lattner's avatar Chris Lattner
Browse files

Teach codegen to lower llvm.powi to an efficient (but not optimal)

multiply sequence when the power is a constant integer.  Before, our
codegen for std::pow(.., int) always turned into a libcall, which was
really inefficient.

This should also make many gfortran programs happier I'd imagine.

llvm-svn: 92388
parent 5967840a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment