reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
; RUN: opt < %s -instcombine -S | FileCheck %s

define float @mytan(float %x) {
entry:
  %call = call float @atanf(float %x)
  %call1 = call float @tanf(float %call) 
  ret float %call1
}

; CHECK-LABEL: define float @mytan(
; CHECK:   %call = call float @atanf(float %x)
; CHECK-NEXT:   %call1 = call float @tanf(float %call)
; CHECK-NEXT:   ret float %call1
; CHECK-NEXT: }

declare float @tanf(float)
declare float @atanf(float)