• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -instcombine -S | FileCheck %s
2
3define float @mytan(float %x) {
4entry:
5  %call = call float @atanf(float %x)
6  %call1 = call float @tanf(float %call)
7  ret float %call1
8}
9
10; CHECK-LABEL: define float @mytan(
11; CHECK:   %call = call float @atanf(float %x)
12; CHECK-NEXT:   %call1 = call float @tanf(float %call)
13; CHECK-NEXT:   ret float %call1
14; CHECK-NEXT: }
15
16declare float @tanf(float)
17declare float @atanf(float)
18