commit | eb61c920f12cacee38815bf10821d2f294b66f3a | [log] [tgz] |
---|---|---|
author | Michael Ilseman <milseman@apple.com> | Tue Nov 27 00:46:26 2012 +0000 |
committer | Michael Ilseman <milseman@apple.com> | Tue Nov 27 00:46:26 2012 +0000 |
tree | 2e983dec27c11ee07708c46fa7f23af9285f19bb | |
parent | a52f3ae45ce28198bb402ddea8db5a8cb8d8ced7 [diff] |
Fast-math optimization: fold multiply by zero Added in first optimization using fast-math flags to serve as an example for following optimizations. SimplifyInstruction will now try to optimize an fmul observing its FastMathFlags to see if it can fold multiply by zero when 'nnan' and 'nsz' flags are set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168648 91177308-0d34-0410-b5e6-96231b3b80d8