summaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-02-11 00:43:28 -0800
committerYamaArashi <shadow962@live.com>2016-02-11 00:43:28 -0800
commit23e2a17097740709d4466a802e03992116b12900 (patch)
tree0c28d207942a6319e69dad1ae54152307b392dda /gcc/jump.c
parentcea2793f5e39d74bc92a5129af95504c4b23335d (diff)
remove profiling
Diffstat (limited to 'gcc/jump.c')
-rwxr-xr-xgcc/jump.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 2495ac4..2e6b289 100755
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1664,13 +1664,6 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
{
rtx tem = temp;
- /* ??? Optional. Disables some optimizations, but makes
- gcov output more accurate with -O. */
- if (flag_test_coverage && !reload_completed)
- for (tem = insn; tem != temp; tem = NEXT_INSN (tem))
- if (GET_CODE (tem) == NOTE && NOTE_LINE_NUMBER (tem) > 0)
- break;
-
if (tem == temp)
{
delete_jump (insn);
@@ -3573,10 +3566,7 @@ follow_jumps (label)
if (!reload_completed)
for (tem = value; tem != insn; tem = NEXT_INSN (tem))
if (GET_CODE (tem) == NOTE
- && (NOTE_LINE_NUMBER (tem) == NOTE_INSN_LOOP_BEG
- /* ??? Optional. Disables some optimizations, but makes
- gcov output more accurate with -O. */
- || (flag_test_coverage && NOTE_LINE_NUMBER (tem) > 0)))
+ && (NOTE_LINE_NUMBER (tem) == NOTE_INSN_LOOP_BEG))
return value;
/* If we have found a cycle, make the insn jump to itself. */
@@ -3697,10 +3687,7 @@ mark_jump_label (x, insn, cross_jump)
break;
else if (! cross_jump
&& (NOTE_LINE_NUMBER (next) == NOTE_INSN_LOOP_BEG
- || NOTE_LINE_NUMBER (next) == NOTE_INSN_FUNCTION_END
- /* ??? Optional. Disables some optimizations, but
- makes gcov output more accurate with -O. */
- || (flag_test_coverage && NOTE_LINE_NUMBER (next) > 0)))
+ || NOTE_LINE_NUMBER (next) == NOTE_INSN_FUNCTION_END))
break;
}
@@ -4128,18 +4115,6 @@ invert_jump (jump, nlabel)
if (redirect_jump (jump, nlabel))
{
- if (flag_branch_probabilities)
- {
- rtx note = find_reg_note (jump, REG_BR_PROB, 0);
-
- /* An inverted jump means that a probability taken becomes a
- probability not taken. Subtract the branch probability from the
- probability base to convert it back to a taken probability.
- (We don't flip the probability on a branch that's never taken. */
- if (note && XINT (XEXP (note, 0), 0) >= 0)
- XINT (XEXP (note, 0), 0) = REG_BR_PROB_BASE - XINT (XEXP (note, 0), 0);
- }
-
return 1;
}