diff options
author | Chenbing Zheng <Chenbing.Zheng@streamcomputing.com> | 2022-04-25 09:48:43 +0800 |
---|---|---|
committer | Chenbing Zheng <Chenbing.Zheng@streamcomputing.com> | 2022-04-25 09:53:36 +0800 |
commit | 5805cfb90127195a9e8aa09716e989f286d0e22b (patch) | |
tree | f7a0d0465b529a3e835ce8b147eb9f024ea870ca /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | d13f5023891c92fc79818e02a838f913bf3e452b (diff) | |
download | llvm-5805cfb90127195a9e8aa09716e989f286d0e22b.zip llvm-5805cfb90127195a9e8aa09716e989f286d0e22b.tar.gz llvm-5805cfb90127195a9e8aa09716e989f286d0e22b.tar.bz2 |
[InstCombine] Complete folding of fneg-of-fabs
This patch add a function foldSelectWithFCmpToFabs, and do more combine for
fneg-of-fabs.
With 'nsz':
fold (X < +/-0.0) ? X : -X or (X <= +/-0.0) ? X : -X to -fabs(x)
fold (X > +/-0.0) ? X : -X or (X >= +/-0.0) ? X : -X to -fabs(x)
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D123830
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions