On Sep 17 2018, Jeff Law <l...@redhat.com> wrote:

> On 9/17/18 3:08 AM, Andreas Schwab wrote:
>>      PR rtl-optimization/85458
>>      * sel-sched.c (sel_target_adjust_priority): Remove wrong
>>      assertion.
> Under what conditions is the new priority negative?  Without digging
> deep into the ia64 port that just seems wrong.

It is created in create_speculation_check:

Starting program: /daten/src/gcc/c-ia64/gcc/cc1 -O3 -funroll-loops 
../../gcc/gcc/testsuite/gcc.c-torture/compile/20010102-1.c
 _obstack_newchunk
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes> 
<targetclone> <free-fnsummary>Streaming LTO
 <whole-program> <profile_estimate> <icf> <devirt> <cp> <fnsummary> <inline> 
<pure-const> <free-fnsummary> <static-var> <single-use> <comdats>Assembling 
functions:
 <materialize-all-clones> _obstack_newchunk
Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, check_ds=47, 
    orig_insn=0x7ffff6b6b4c0) at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$18 = 13
(gdb) c
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, check_ds=47, 
    orig_insn=0x7ffff6b6b680) at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$19 = 11
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, check_ds=47, 
    orig_insn=0x7ffff6b6ba00) at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$20 = 7
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, check_ds=26, 
    orig_insn=0x7ffff6bb1940) at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$21 = 1
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253978, orig_insn=0x7ffff6b6b300)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$22 = 15
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253952, orig_insn=0x7ffff6b55240)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$23 = 0
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253999, orig_insn=0x7ffff6b554c0)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$24 = 0
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253987, orig_insn=0x7ffff6b55700)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$25 = 0
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253978, orig_insn=0x7ffff6b55940)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$26 = 0
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253978, orig_insn=0x7ffff6b55b80)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$27 = 0
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253952, orig_insn=0x7ffff6b58540)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$28 = 0
(gdb) 
Continuing.

Breakpoint 6, create_speculation_check (c_expr=0x7fffffffd250, 
    check_ds=253952, orig_insn=0x7ffff6b586c0)
    at ../../gcc/gcc/sel-sched.c:1820
1820      if (recovery_block != NULL)
$29 = -1
(gdb) 
Continuing.

Breakpoint 1, fancy_abort (file=0x13ead27 "../../gcc/gcc/sel-sched.c", 
    line=3333, 
    function=0x13ebe30 <sel_target_adjust_priority(_expr*)::__FUNCTION__> 
"sel_target_adjust_priority") at ../../gcc/gcc/diagnostic.c:1559
1559    {

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to