HomePhabricator

[InstCombine] For cos/sin -> tan copy attributes from cos instead of the

Description

[InstCombine] For cos/sin -> tan copy attributes from cos instead of the
parent function

Ideally we should merge the attributes from the functions somehow, but
this is obviously an improvement over taking random attributes from the
caller which will trip up the verifier if they're nonsensical for an
unary intrinsic call.

Details

Committed
d0kJan 11 2018, 7:19 AM
Parents
rL322283: [ValueTracking] recognize min/max-of-min/max with notted ops (PR35875)
Branches
Unknown
Tags
Unknown