Skip to content

Commit

Permalink
Remove all SPARC architecture optimizations
Browse files Browse the repository at this point in the history
SPARC is no longer being used in any multimedia-related fields and the
VIS optimizations only represent a maintenance burden.
  • Loading branch information
DonDiego committed Mar 13, 2014
1 parent d6096a6 commit b4dd424
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 4,644 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ config.h: .config
SUBDIR_VARS := CLEANFILES EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS \
HEADERS ARCH_HEADERS BUILT_HEADERS SKIPHEADERS \
ARMV5TE-OBJS ARMV6-OBJS VFP-OBJS NEON-OBJS \
ALTIVEC-OBJS VIS-OBJS \
MMX-OBJS YASM-OBJS \
ALTIVEC-OBJS MMX-OBJS YASM-OBJS \
OBJS HOSTOBJS TESTOBJS

define RESET
Expand Down
2 changes: 0 additions & 2 deletions arch.mak
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ OBJS-$(HAVE_NEON) += $(NEON-OBJS) $(NEON-OBJS-yes)

OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS) $(ALTIVEC-OBJS-yes)

OBJS-$(HAVE_VIS) += $(VIS-OBJS) $(VIS-OBJS-yes)

OBJS-$(HAVE_MMX) += $(MMX-OBJS) $(MMX-OBJS-yes)
OBJS-$(HAVE_YASM) += $(YASM-OBJS) $(YASM-OBJS-yes)
12 changes: 0 additions & 12 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ Optimization options (experts only):
--disable-armv6t2 disable armv6t2 optimizations
--disable-vfp disable VFP optimizations
--disable-neon disable NEON optimizations
--disable-vis disable VIS optimizations
--disable-inline-asm disable use of inline assembler
--disable-yasm disable use of yasm assembler
Expand Down Expand Up @@ -1294,7 +1293,6 @@ ARCH_EXT_LIST="
$ARCH_EXT_LIST_X86
altivec
ppc4xx
vis
"

HAVE_LIST_CMDLINE="
Expand Down Expand Up @@ -1584,8 +1582,6 @@ map 'eval ${v}_inline_deps=inline_asm' $ARCH_EXT_LIST_ARM
altivec_deps="ppc"
ppc4xx_deps="ppc"

vis_deps="sparc"

cpunop_deps="i686"
x86_64_select="i686"
x86_64_suggest="fast_cmov"
Expand Down Expand Up @@ -3151,7 +3147,6 @@ elif enabled sparc; then
case $cpu in
cypress|f93[04]|tsc701|sparcl*|supersparc|hypersparc|niagara|v[789])
cpuflags="-mcpu=$cpu"
disable vis
;;
ultrasparc*|niagara[234])
cpuflags="-mcpu=$cpu"
Expand Down Expand Up @@ -3740,10 +3735,6 @@ EOF
enabled altivec || warn "Altivec disabled, possibly missing --cpu flag"
fi

elif enabled sparc; then

enabled vis && check_inline_asm vis '"pdist %f0, %f0, %f0"'

elif enabled x86; then

check_builtin rdtsc intrin.h "__rdtsc()"
Expand Down Expand Up @@ -4351,9 +4342,6 @@ if enabled ppc; then
echo "PPC 4xx optimizations ${ppc4xx-no}"
echo "dcbzl available ${dcbzl-no}"
fi
if enabled sparc; then
echo "VIS enabled ${vis-no}"
fi
echo "debug symbols ${debug-no}"
echo "optimize for size ${small-no}"
echo "optimizations ${optimizations-no}"
Expand Down
11 changes: 0 additions & 11 deletions doc/optimization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,6 @@ CELL/SPU:
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/30B3520C93F437AB87257060006FFE5E/$file/Language_Extensions_for_CBEA_2.4.pdf
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/9F820A5FFA3ECE8C8725716A0062585F/$file/CBE_Handbook_v1.1_24APR2007_pub.pdf

SPARC-specific:
---------------
SPARC Joint Programming Specification (JPS1): Commonality
http://www.fujitsu.com/downloads/PRMPWR/JPS1-R1.0.4-Common-pub.pdf

UltraSPARC III Processor User's Manual (contains instruction timings)
http://www.sun.com/processors/manuals/USIIIv2.pdf

VIS Whitepaper (contains optimization guidelines)
http://www.sun.com/processors/vis/download/vis/vis_whitepaper.pdf

GCC asm links:
--------------
official doc but quite ugly
Expand Down
2 changes: 2 additions & 0 deletions libavcodec/avcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,9 @@ typedef struct AVCodecContext {
#define FF_IDCT_XVIDMMX 14
#define FF_IDCT_SIMPLEARMV5TE 16
#define FF_IDCT_SIMPLEARMV6 17
#if FF_API_ARCH_SPARC
#define FF_IDCT_SIMPLEVIS 18
#endif
#define FF_IDCT_FAAN 20
#define FF_IDCT_SIMPLENEON 22
#if FF_API_ARCH_ALPHA
Expand Down
2 changes: 0 additions & 2 deletions libavcodec/dsputil.c
Original file line number Diff line number Diff line change
Expand Up @@ -2653,8 +2653,6 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
ff_dsputil_init_bfin(c, avctx);
if (ARCH_PPC)
ff_dsputil_init_ppc(c, avctx);
if (HAVE_VIS)
ff_dsputil_init_vis(c, avctx);
if (ARCH_X86)
ff_dsputil_init_x86(c, avctx);

Expand Down
1 change: 0 additions & 1 deletion libavcodec/dsputil.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type);
void ff_dsputil_init_arm(DSPContext* c, AVCodecContext *avctx);
void ff_dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx);
void ff_dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx);
void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
void ff_dsputil_init_x86(DSPContext* c, AVCodecContext *avctx);

#endif /* AVCODEC_DSPUTIL_H */
2 changes: 0 additions & 2 deletions libavcodec/hpeldsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ av_cold void ff_hpeldsp_init(HpelDSPContext *c, int flags)
ff_hpeldsp_init_bfin(c, flags);
if (ARCH_PPC)
ff_hpeldsp_init_ppc(c, flags);
if (HAVE_VIS)
ff_hpeldsp_init_vis(c, flags);
if (ARCH_X86)
ff_hpeldsp_init_x86(c, flags);
}
1 change: 0 additions & 1 deletion libavcodec/hpeldsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ void ff_hpeldsp_init_aarch64(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_arm(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_bfin(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_ppc(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_vis(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags);

#endif /* AVCODEC_HPELDSP_H */
4 changes: 0 additions & 4 deletions libavcodec/sparc/Makefile

This file was deleted.

40 changes: 0 additions & 40 deletions libavcodec/sparc/dsputil_vis.c

This file was deleted.

28 changes: 0 additions & 28 deletions libavcodec/sparc/dsputil_vis.h

This file was deleted.

Loading

0 comments on commit b4dd424

Please sign in to comment.