[CodeGen] Removes unwanted optimisation for TargetConstantFP
authorCraig Topper <craig.topper@sifive.com>
Fri, 15 Jan 2021 19:38:51 +0000 (11:38 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 15 Jan 2021 19:52:53 +0000 (11:52 -0800)
commita9e939760c6f21476109559cc3e21779bddddaff
tree69362db655d6248bba06c1f63eb676638ac5d876
parent4f24d0dd5386cc0ff61be23062b89855da87094b
[CodeGen] Removes unwanted optimisation for TargetConstantFP

This 'FIXME' popped up in the development of an out-of-tree backend.
Quick fix, but first llvm upstream patch, therefore I do not have commit rights, so if approved please commit?

- Test is not included as this came up in an out-of-tree backend (if required, please hint on how to test this).

Patch by simveg (Simon)

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D93219
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp