diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-06-28 20:25:50 +0000 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-06-28 20:25:50 +0000 |
commit | a45584bebebc5ebe999c0a1672687d2a8cca505b (patch) | |
tree | 2bcc194f9f69e928321a6fa0ff886d83f14fba6e /llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp | |
parent | 57f57262c519be373526f81ffc1d1d7caf3c9ad1 (diff) | |
download | llvm-a45584bebebc5ebe999c0a1672687d2a8cca505b.zip llvm-a45584bebebc5ebe999c0a1672687d2a8cca505b.tar.gz llvm-a45584bebebc5ebe999c0a1672687d2a8cca505b.tar.bz2 |
Fold fneg and fabs like multiplications
Given no NaNs and no signed zeroes it folds:
(fmul X, (select (fcmp X > 0.0), -1.0, 1.0)) -> (fneg (fabs X))
(fmul X, (select (fcmp X > 0.0), 1.0, -1.0)) -> (fabs X)
Differential Revision: https://reviews.llvm.org/D34579
llvm-svn: 306592
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp')
0 files changed, 0 insertions, 0 deletions