[ConstantFolding] Enable folding of min/max/copysign for all floats
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 9 Jun 2021 03:49:17 +0000 (10:49 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Thu, 10 Jun 2021 04:57:51 +0000 (11:57 +0700)
commit8ff36aab69ece2cc91ba30f82847d19fe877a7ab
tree35d96787e99dbc037adaad057938cf2361e1fe8a
parentb6f983dd842e773cf045a96744f595aa5ce7af9d
[ConstantFolding] Enable folding of min/max/copysign for all floats

Previously such folding was enabled for half, float and double values
only. With this change it is allowed for other floating point values
also.

Differential Revision: https://reviews.llvm.org/D103956
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstSimplify/ConstProp/copysign.ll
llvm/test/Transforms/InstSimplify/ConstProp/min-max.ll