[InstCombine] Don't transform sin/cos -> tanl if for half types
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2018 12:01:38 +0000 (12:01 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2018 12:01:38 +0000 (12:01 +0000)
commite5e1ea79fd2ceff7f5931300165286be018a64c1
treefa10b9ac0dea3954626e911f6d05bffba1d9423e
parent86a5e436564b6af8fc209654114fa19dccfae71b
[InstCombine] Don't transform sin/cos -> tanl if for half types

This is still unsafe for long double, we will transform things into tanl
even if tanl is for another type. But that's for someone else to fix.

llvm-svn: 342542
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
llvm/test/Transforms/InstCombine/fdiv-cos-sin.ll