diff options
author | Sanjay Patel <spatel@rotateright.com> | 2020-01-20 10:25:47 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2020-01-20 10:51:14 -0500 |
commit | 7bee94410ce265833695128dfad7fbd7a8eef6ba (patch) | |
tree | 488fc7decffffa0d4f8594f84083e8bf8ea699cf /llvm/unittests/Support/FileCheckTest.cpp | |
parent | 9ecfaad7573bdc6725cc717cb79c9b0a32f9765a (diff) | |
download | llvm-7bee94410ce265833695128dfad7fbd7a8eef6ba.zip llvm-7bee94410ce265833695128dfad7fbd7a8eef6ba.tar.gz llvm-7bee94410ce265833695128dfad7fbd7a8eef6ba.tar.bz2 |
[InstCombine] form copysign from select of FP constants (PR44153)
This should be the last step needed to solve the problem in the
description of PR44153:
https://bugs.llvm.org/show_bug.cgi?id=44153
If we're casting an FP value to int, testing its signbit, and then
choosing between a value and its negated value, that's a
complicated way of saying "copysign":
(bitcast X) < 0 ? -TC : TC --> copysign(TC, X)
Differential Revision: https://reviews.llvm.org/D72643
Diffstat (limited to 'llvm/unittests/Support/FileCheckTest.cpp')
0 files changed, 0 insertions, 0 deletions