| commit | 37cd6cfba2e92fa89fbc4e8653edf1bb3229ba0d | [log] [tgz] |
|---|---|---|
| author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | Fri Aug 23 10:27:02 2013 +0000 |
| committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | Fri Aug 23 10:27:02 2013 +0000 |
| tree | e6823002829472937c12857c88104b02b2d3b7a3 | |
| parent | 1f1b2756a467b8ab835109c4aae6a4e84cbd64c3 [diff] |
Turn MipsOptimizeMathLibCalls into a target-independent scalar transform ...so that it can be used for z too. Most of the code is the same. The only real change is to use TargetTransformInfo to test when a sqrt instruction is available. The pass is opt-in because at the moment it only handles sqrt. llvm-svn: 189097