mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 09:09:23 +00:00
[TargetLibraryInfo] Teach isValidProtoForLibFunc about tan
We would fail to validate the type of the tan function which would cause downstream users of isValidProtoForLibFunc to assert. This fixes PR28143. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272802 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
746c3b7ff4
commit
7f26e26d0c
@ -897,6 +897,9 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy,
|
||||
case LibFunc::cos:
|
||||
case LibFunc::cosf:
|
||||
case LibFunc::cosl:
|
||||
case LibFunc::tan:
|
||||
case LibFunc::tanf:
|
||||
case LibFunc::tanl:
|
||||
case LibFunc::exp:
|
||||
case LibFunc::expf:
|
||||
case LibFunc::expl:
|
||||
|
12
test/Transforms/InstCombine/pr28143.ll
Normal file
12
test/Transforms/InstCombine/pr28143.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: opt -S -instcombine < %s | FileCheck %s
|
||||
|
||||
define void @test1() {
|
||||
entry:
|
||||
call void @tan()
|
||||
ret void
|
||||
}
|
||||
; CHECK-LABEL: define void @test1(
|
||||
; CHECK: call void @tan()
|
||||
; CHECK-NEXT: ret void
|
||||
|
||||
declare void @tan()
|
Loading…
x
Reference in New Issue
Block a user