[InstCombine] drop FMF in select->copysign transform
authorSanjay Patel <spatel@rotateright.com>
Tue, 1 Mar 2022 13:48:37 +0000 (08:48 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 1 Mar 2022 13:51:41 +0000 (08:51 -0500)
commit84812b9b072a513acfa76149c5a481d4eb8a511d
tree45ab572379af9a79bb98bd66a8419ea31f192140
parent53dbedcd188a83cb945d95a8e7d536917a2e9934
[InstCombine] drop FMF in select->copysign transform

It is not correct to propagate flags from the select
to the new instructions:
https://alive2.llvm.org/ce/z/tNATrd
https://alive2.llvm.org/ce/z/VwcVzn

Fixes #54077
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select.ll