Revision 74f40fd72e69ae4e9e52c056306064907e07cfb6 authored by Andrew Adams on 03 March 2021, 20:26:03 UTC, committed by GitHub on 03 March 2021, 20:26:03 UTC
* Track time spent in malloc/free when profiling * Appease clang tidy * Remove unnecessary asserts
1 parent acebd50
powerpc.ll
declare <4 x float> @llvm.ppc.altivec.vrefp(<4 x float>) nounwind readnone
declare <4 x float> @llvm.ppc.altivec.vrsqrtefp(<4 x float>) nounwind readnone
define weak_odr float @fast_inverse_f32(float %x) readnone alwaysinline {
%vec = insertelement <4 x float> undef, float %x, i32 0
%approx = tail call <4 x float> @llvm.ppc.altivec.vrefp(<4 x float> %vec)
%result = extractelement <4 x float> %approx, i32 0
ret float %result
}
define weak_odr <4 x float> @fast_inverse_f32x4(<4 x float> %x) readnone alwaysinline {
%approx = tail call <4 x float> @llvm.ppc.altivec.vrefp(<4 x float> %x) #2
ret <4 x float> %approx
}
define weak_odr float @fast_inverse_sqrt_f32(float %x) readnone alwaysinline {
%vec = insertelement <4 x float> undef, float %x, i32 0
%approx = tail call <4 x float> @llvm.ppc.altivec.vrsqrtefp(<4 x float> %vec)
%result = extractelement <4 x float> %approx, i32 0
ret float %result
}
define weak_odr <4 x float> @fast_inverse_sqrt_f32x4(<4 x float> %x) readnone alwaysinline {
%approx = tail call <4 x float> @llvm.ppc.altivec.vrsqrtefp(<4 x float> %x) #2
ret <4 x float> %approx
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...