[SimplifyLibCalls] Don't depend on a called function having a name, it might be an...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 26 Nov 2015 09:51:17 +0000 (09:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 26 Nov 2015 09:51:17 +0000 (09:51 +0000)
commit7c7d1ee4c21dde71248681dff45b984689e977d7
tree9b0cfe56911096898959f492ebdc9b97f61eb890
parent2e77264e42c50ccaa63021ac99bc05ad3f2fccfe
[SimplifyLibCalls] Don't depend on a called function having a name, it might be an indirect call.

Fixes the crasher in PR25651 and related crashers using the same pattern.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254145 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/pow-exp.ll
test/Transforms/InstCombine/sincospi.ll
test/Transforms/InstCombine/tan.ll