aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorQingShan Zhang <qshanz@cn.ibm.com>2020-03-05 03:42:50 +0000
committerQingShan Zhang <qshanz@cn.ibm.com>2020-03-05 03:42:50 +0000
commit3906ae387f0775dfe4426e4336748269fafbd190 (patch)
tree772f9fc78ea44facf5516669aa4c70a578420344 /llvm/lib/Object/MachOObjectFile.cpp
parentea6eb813c7cb06311c48706bc82ee103c9a52182 (diff)
downloadllvm-3906ae387f0775dfe4426e4336748269fafbd190.zip
llvm-3906ae387f0775dfe4426e4336748269fafbd190.tar.gz
llvm-3906ae387f0775dfe4426e4336748269fafbd190.tar.bz2
[DAGCombine] Check the uses of negated floating constant and remove the hack
PowerPC hits an assertion due to somewhat the same reason as https://reviews.llvm.org/D70975. Though there are already some hack, it still failed with some case, when the operand 0 is NOT a const fp, it is another fma that with const fp. And that const fp is negated which result in multi-uses. A better fix is to check the uses of the negated const fp. If there are already use of its negated value, we will have benefit as no extra Node is added. Differential revision: https://reviews.llvm.org/D75501
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions