diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-05-08 22:19:52 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-05-08 22:19:52 +0000 |
commit | 902b3ecdad8999519eb7436f72b533701ac168fa (patch) | |
tree | 4e22a83075c4aae24881078245eab018c96afc85 /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | f3fb7fac3232a661ed914f796eb029cc5ce2e3e4 (diff) | |
download | llvm-902b3ecdad8999519eb7436f72b533701ac168fa.zip llvm-902b3ecdad8999519eb7436f72b533701ac168fa.tar.gz llvm-902b3ecdad8999519eb7436f72b533701ac168fa.tar.bz2 |
[SelectionDAG] fold 'fneg undef' to undef
This is extracted from the original draft of D61419 with some additional tests.
We don't currently get this in IR (it's conservatively turned into a NaN),
but presumably that'll get updated as we add real IR support for 'fneg'
rather than 'fsub -0.0, x'.
The x86-32 run shows the following, and I haven't looked further to see why,
but that seems to be independent:
Legalizing: t1: f32 = undef
Trying to expand node
Creating fp constant: t4: f32 = ConstantFP<0.000000e+00>
Differential Revision: https://reviews.llvm.org/D61516
llvm-svn: 360296
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions