Mercurial > hg > CbC > CbC_llvm
view test/Transforms/InstCombine/tan.ll @ 147:c2174574ed3a
LLVM 10
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 16:55:33 +0900 |
parents | 7d135dc70f03 |
children |
line wrap: on
line source
; RUN: opt < %s -instcombine -S | FileCheck %s define float @mytan(float %x) { %call = call fast float @atanf(float %x) %call1 = call fast float @tanf(float %call) ret float %call1 } ; CHECK-LABEL: define float @mytan( ; CHECK: ret float %x define float @test2(float ()* %fptr) { %call1 = call fast float %fptr() %tan = call fast float @tanf(float %call1) ret float %tan } ; CHECK-LABEL: @test2 ; CHECK: tanf declare float @tanf(float) declare float @atanf(float)