HomePhabricator

[InstSimplify] fold copysign with same args to the arg

Authored by spatel on Nov 26 2019, 2:35 PM.

Description

[InstSimplify] fold copysign with same args to the arg

This is correct for any value including NaN/inf.

We don't have this fold directly in the backend either,
but x86 manages to get it after converting things to bitops.

Details

Committed
spatelNov 26 2019, 2:35 PM
Parents
rG48a3a1e09061: [InstSimplify] add tests for copysign; NFC
Branches
Unknown
Tags
Unknown