The munalign-prob-threshold option is obsolete, remove it. gcc/ xxxx-xx-xx Claudiu Zissulescu <claz...@synopsys.com>
* config/arc/arc.opt (munalign-prob-threshold): Remove option. * doc/invoke.texi (ARC): Remove munalign-prob-threshold doc. * config/arc/arc.c (arc_unalign_branch_p): Remove unused function. --- gcc/config/arc/arc.c | 23 ----------------------- gcc/config/arc/arc.opt | 6 ------ gcc/doc/invoke.texi | 11 +---------- 3 files changed, 1 insertion(+), 39 deletions(-) diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index c57febd3783..af26e5b9711 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -9920,29 +9920,6 @@ gen_acc2 (void) return gen_rtx_REG (SImode, TARGET_BIG_ENDIAN ? 57: 56); } -/* FIXME: a parameter should be added, and code added to final.c, - to reproduce this functionality in shorten_branches. */ -#if 0 -/* Return nonzero iff BRANCH should be unaligned if possible by upsizing - a previous instruction. */ -int -arc_unalign_branch_p (rtx branch) -{ - rtx note; - - if (!TARGET_UNALIGN_BRANCH) - return 0; - /* Do not do this if we have a filled delay slot. */ - if (get_attr_delay_slot_filled (branch) == DELAY_SLOT_FILLED_YES - && !NEXT_INSN (branch)->deleted ()) - return 0; - note = find_reg_note (branch, REG_BR_PROB, 0); - return (!note - || (arc_unalign_prob_threshold && !br_prob_note_reliable_p (note)) - || INTVAL (XEXP (note, 0)) < arc_unalign_prob_threshold); -} -#endif - /* When estimating sizes during arc_reorg, when optimizing for speed, there are three reasons why we need to consider branches to be length 6: - annull-false delay slot insns are implemented using conditional execution, diff --git a/gcc/config/arc/arc.opt b/gcc/config/arc/arc.opt index a8af5138183..244c3abd86d 100644 --- a/gcc/config/arc/arc.opt +++ b/gcc/config/arc/arc.opt @@ -287,12 +287,6 @@ mmul32x16 Target Report Mask(MULMAC_32BY16_SET) Generate 32x16 multiply and mac instructions. -; the initializer is supposed to be: Init(REG_BR_PROB_BASE/2) , -; alas, basic-block.h is not included in options.c . -munalign-prob-threshold= -Target RejectNegative Joined UInteger Var(arc_unalign_prob_threshold) Init(10000/2) -Set probability threshold for unaligning branches. - mmedium-calls Target Var(TARGET_MEDIUM_CALLS) Init(TARGET_MMEDIUM_CALLS_DEFAULT) Don't use less than 25 bit addressing range for calls. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 802d36d4098..51c2d6d04de 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -729,7 +729,7 @@ Objective-C and Objective-C++ Dialects}. -mlra-priority-compact mlra-priority-noncompact -mmillicode @gol -mq-class -mRcq -mRcw -msize-level=@var{level} @gol -mtune=@var{cpu} -mmultcost=@var{num} -mcode-density-frame @gol --munalign-prob-threshold=@var{probability} -mmpy-option=@var{multo} @gol +-mmpy-option=@var{multo} @gol -mdiv-rem -mcode-density -mll64 -mfpu=@var{fpu} -mrf16 -mbranch-index} @emph{ARM Options} @@ -18031,15 +18031,6 @@ Tune for ARC4x release 3.10a. Cost to assume for a multiply instruction, with @samp{4} being equal to a normal instruction. -@item -munalign-prob-threshold=@var{probability} -@opindex munalign-prob-threshold -Set probability threshold for unaligning branches. -When tuning for @samp{ARC700} and optimizing for speed, branches without -filled delay slot are preferably emitted unaligned and long, unless -profiling indicates that the probability for the branch to be taken -is below @var{probability}. @xref{Cross-profiling}. -The default is (REG_BR_PROB_BASE/2), i.e.@: 5000. - @end table The following options are maintained for backward compatibility, but -- 2.24.1