commit | f031e8ad011e9ad95d7c965936da07e3a9c42add | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Jan 01 03:32:16 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Jan 01 03:32:16 2010 +0000 |
tree | f548e6e940434f362f095323d22b87f189df7433 | |
parent | 0fba8cf9ffbb4397d3ddbb51469c8819d0faf3cc [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92388 91177308-0d34-0410-b5e6-96231b3b80d8