<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:gw.fossdev@gmail.com" title="Gert Wollny <gw.fossdev@gmail.com>"> <span class="fn">Gert Wollny</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - R600g+sb: optimizer apparently stuck in an endless loop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103142">bug 103142</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #134738 is obsolete</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - R600g+sb: optimizer apparently stuck in an endless loop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103142#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - R600g+sb: optimizer apparently stuck in an endless loop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103142">bug 103142</a>
              from <span class="vcard"><a class="email" href="mailto:gw.fossdev@gmail.com" title="Gert Wollny <gw.fossdev@gmail.com>"> <span class="fn">Gert Wollny</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=134759" name="attach_134759" title="Shader triggering the endless loop">attachment 134759</a> <a href="attachment.cgi?id=134759&action=edit" title="Shader triggering the endless loop">[details]</a></span>
Shader triggering the endless loop

I think the last log was not correct, i.e. it was not the right shader. This
new log shows different error messages. The the endless loop is happening in
"post_scheduler". 

I've run the code with R600_DEBUG=nocw,sbdump in addition to the PSC_DUMP. 
I've also tried R600_DEBUG=sbsafemath, but to no avail.

Snip of the log: 

# REGMAP :
    current_AR: R42.x.199||@R1.x
  current_AR is R42.x.199||@R1.x  trying to use R41.x.235||@R0.z
  current_AR is R42.x.199||@R1.x  trying to use <a href="mailto:R42.x.200@R10.w">R42.x.200@R10.w</a>
  current_AR is R42.x.199||@R1.x  trying to use <a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>
!!!!!! interf slot: 2  : ADD     t116||@R2.z,   
A100.y[R41.x.235||@R0.z]<a href="mailto:_763F@R8.y">_763F@R8.y</a>, A100.y[<a href="mailto:R43.x.126@R2.z">R43.x.126@R2.z</a>]<a href="mailto:_764F@R8.y">_764F@R8.y</a>
                                            rels:
A100.y[R41.x.235||@R0.z]<a href="mailto:_763F@R8.y">_763F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
                                            rels:
A100.y[<a href="mailto:R43.x.126@R2.z">R43.x.126@R2.z</a>]<a href="mailto:_764F@R8.y">_764F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
!!!!!! interf slot: 3  : MOV     R43.z.49||@R10.w,   
A100.y[<a href="mailto:R42.x.200@R10.w">R42.x.200@R10.w</a>]<a href="mailto:_759F@R8.y">_759F@R8.y</a>
                                            rels:
A100.y[<a href="mailto:R42.x.200@R10.w">R42.x.200@R10.w</a>]<a href="mailto:_759F@R8.y">_759F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
!!!!!! interf slot: 4  : MOV     R43.y.48||@R12.z,   
A100.x[<a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>]<a href="mailto:_755F@R8.x">_755F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>]<a href="mailto:_755F@R8.x">_755F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
ci: discarding slots 28
discard_slots : packed_ops : 0
discarding slot 2 : ADD     t116||@R2.z,    A100.y[R41.x.235||@R0.z]<a href="mailto:_763F@R8.y">_763F@R8.y</a>,
A100.y[<a href="mailto:R43.x.126@R2.z">R43.x.126@R2.z</a>]<a href="mailto:_764F@R8.y">_764F@R8.y</a>
                                            rels:
A100.y[R41.x.235||@R0.z]<a href="mailto:_763F@R8.y">_763F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
                                            rels:
A100.y[<a href="mailto:R43.x.126@R2.z">R43.x.126@R2.z</a>]<a href="mailto:_764F@R8.y">_764F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
discarding slot 3 : MOV     R43.z.49||@R10.w,   
A100.y[<a href="mailto:R42.x.200@R10.w">R42.x.200@R10.w</a>]<a href="mailto:_759F@R8.y">_759F@R8.y</a>
                                            rels:
A100.y[<a href="mailto:R42.x.200@R10.w">R42.x.200@R10.w</a>]<a href="mailto:_759F@R8.y">_759F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
discarding slot 4 : MOV     R43.y.48||@R12.z,   
A100.x[<a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>]<a href="mailto:_755F@R8.x">_755F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>]<a href="mailto:_755F@R8.x">_755F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
check_interferences: after: 
# REGMAP :
    current_AR: R42.x.199||@R1.x
update_local_interferences : [R26.x.7F R26.y.7F R26.z.7F R27.x.7F R27.y.7F
R27.z.7F R28.x.7F R28.y.7F R28.z.7F R100.x.1F R101.x.1F R100.y.1F R101.y.1F
R102.x.1F R102.y.1F R103.x.1F R104.x.1F R103.y.1F R104.y.1F R105.x.1F R105.y.1F
R106.x.1F R107.x.1F R106.y.1F R107.y.1F R108.x.1F R108.y.1F R109.x.1F R109.y.1F
R4.x.410||@R6.w R41.x.194||@R4.y R42.x.184||@R2.y R43.x.112||@R12.y
R43.y.43||@R14.w R41.x.202||@R0.w R42.x.188||@R1.z R43.x.114||@R13.w
R43.y.44||@R7.w R4.x.423||@R5.w R41.x.213||@R2.w R42.x.195||@R3.y
R43.x.119||@R17.w R43.y.48||@R12.z R43.z.48||@R10.w R41.x.221||@R0.y
R42.x.199||@R1.x R44.x.78||@R3.x R43.z.49||@R10.w R4.x.436||@R4.w
R40.x.206||@R1.y R41.x.231||@R1.w R42.x.206||@R16.z R42.y.71||@R10.z
R42.z.71||@R8.w R40.x.214||@R0.x R41.x.235||@R0.z R42.x.208||@R9.z
R42.y.72||@R3.z R42.z.72||@R8.w t111||@R8.z t112||@R13.z t113||@R7.z
t114||@R3.x t115||@R3.w t116||@R2.z ]
p_a_g: MOV     R42.x.206||@R16.z,    A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a>
                                            rels:
A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
slot: 2
current group:
slot 2 : MOV     R42.x.206||@R16.z,    A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a>
                                            rels:
A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
p_a_g: MOV     R43.z.48||@R10.w,    A100.x[<a href="mailto:R42.x.196@R11.z">R42.x.196@R11.z</a>]<a href="mailto:_756F@R8.x">_756F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R42.x.196@R11.z">R42.x.196@R11.z</a>]<a href="mailto:_756F@R8.x">_756F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
slot: 3
current group:
slot 2 : MOV     R42.x.206||@R16.z,    A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a>
                                            rels:
A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
slot 3 : MOV     R43.z.48||@R10.w,    A100.x[<a href="mailto:R42.x.196@R11.z">R42.x.196@R11.z</a>]<a href="mailto:_756F@R8.x">_756F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R42.x.196@R11.z">R42.x.196@R11.z</a>]<a href="mailto:_756F@R8.x">_756F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
p_a_g: MOV     R42.z.72||@R8.w,    A100.y[<a href="mailto:R41.x.236@R8.w">R41.x.236@R8.w</a>]<a href="mailto:_765F@R8.y">_765F@R8.y</a>
                                            rels:
A100.y[<a href="mailto:R41.x.236@R8.w">R41.x.236@R8.w</a>]<a href="mailto:_765F@R8.y">_765F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
slot: 4
current group:
slot 2 : MOV     R42.x.206||@R16.z,    A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a>
                                            rels:
A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
slot 3 : MOV     R43.z.48||@R10.w,    A100.x[<a href="mailto:R42.x.196@R11.z">R42.x.196@R11.z</a>]<a href="mailto:_756F@R8.x">_756F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R42.x.196@R11.z">R42.x.196@R11.z</a>]<a href="mailto:_756F@R8.x">_756F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
slot 4 : MOV     R42.z.72||@R8.w,    A100.y[<a href="mailto:R41.x.236@R8.w">R41.x.236@R8.w</a>]<a href="mailto:_765F@R8.y">_765F@R8.y</a>
                                            rels:
A100.y[<a href="mailto:R41.x.236@R8.w">R41.x.236@R8.w</a>]<a href="mailto:_765F@R8.y">_765F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
p_a_g: ADD     t112||@R13.z,    A100.y[R42.x.188||@R1.z]<a href="mailto:_749F@R8.y">_749F@R8.y</a>,
A100.y[<a href="mailto:R44.x.73@R2.x">R44.x.73@R2.x</a>]<a href="mailto:_750F@R8.y">_750F@R8.y</a>
                                            rels:
A100.y[R42.x.188||@R1.z]<a href="mailto:_749F@R8.y">_749F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
                                            rels:
A100.y[<a href="mailto:R44.x.73@R2.x">R44.x.73@R2.x</a>]<a href="mailto:_750F@R8.y">_750F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
   no suitable slots
p_a_g: ADD     t115||@R3.w,    A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a>,
A100.x[<a href="mailto:R43.x.125@R3.w">R43.x.125@R3.w</a>]<a href="mailto:_761F@R8.x">_761F@R8.x</a>
                                            rels:
A100.x[R41.x.231||@R1.w]<a href="mailto:_760F@R8.x">_760F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
                                            rels:
A100.x[<a href="mailto:R43.x.125@R3.w">R43.x.125@R3.w</a>]<a href="mailto:_761F@R8.x">_761F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
   no suitable slots
p_a_g: MOV     R43.x.114||@R13.w,    A100.y[R42.x.188||@R1.z]<a href="mailto:_749F@R8.y">_749F@R8.y</a>
                                            rels:
A100.y[R42.x.188||@R1.z]<a href="mailto:_749F@R8.y">_749F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
   no suitable slots
p_a_g: ADD     t113||@R7.z,    A100.x[R42.x.195||@R3.y]<a href="mailto:_754F@R8.x">_754F@R8.x</a>,
A100.x[<a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>]<a href="mailto:_755F@R8.x">_755F@R8.x</a>
                                            rels:
A100.x[R42.x.195||@R3.y]<a href="mailto:_754F@R8.x">_754F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
                                            rels:
A100.x[<a href="mailto:R44.x.77@R7.z">R44.x.77@R7.z</a>]<a href="mailto:_755F@R8.x">_755F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
   no suitable slots
p_a_g: MOV     R42.z.71||@R8.w,    A100.x[<a href="mailto:R41.x.232@R15.w">R41.x.232@R15.w</a>]<a href="mailto:_762F@R8.x">_762F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R41.x.232@R15.w">R41.x.232@R15.w</a>]<a href="mailto:_762F@R8.x">_762F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
   no suitable slots
p_a_g: MOV     R42.y.72||@R3.z,    A100.y[<a href="mailto:R43.x.126@R2.z">R43.x.126@R2.z</a>]<a href="mailto:_764F@R8.y">_764F@R8.y</a>
                                            rels:
A100.y[<a href="mailto:R43.x.126@R2.z">R43.x.126@R2.z</a>]<a href="mailto:_764F@R8.y">_764F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
   no suitable slots
p_a_g: ADD     t111||@R8.z,    A100.x[R42.x.184||@R2.y]<a href="mailto:_744F@R8.x">_744F@R8.x</a>,
A100.x[<a href="mailto:R44.x.72@R8.z">R44.x.72@R8.z</a>]<a href="mailto:_745F@R8.x">_745F@R8.x</a>
                                            rels:
A100.x[R42.x.184||@R2.y]<a href="mailto:_744F@R8.x">_744F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
                                            rels:
A100.x[<a href="mailto:R44.x.72@R8.z">R44.x.72@R8.z</a>]<a href="mailto:_745F@R8.x">_745F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
   no suitable slots
p_a_g: MOV     R43.y.43||@R14.w,    A100.x[<a href="mailto:R44.x.72@R8.z">R44.x.72@R8.z</a>]<a href="mailto:_745F@R8.x">_745F@R8.x</a>
                                            rels:
A100.x[<a href="mailto:R44.x.72@R8.z">R44.x.72@R8.z</a>]<a href="mailto:_745F@R8.x">_745F@R8.x</a> :  <= R100.x.1F, R101.x.1F, R102.x.1F,
R103.x.1F, R104.x.1F, R105.x.1F, R106.x.1F, R107.x.1F, R108.x.1F, R109.x.1F
   no suitable slots
p_a_g: MOV     R42.x.208||@R9.z,    A100.y[R41.x.235||@R0.z]<a href="mailto:_763F@R8.y">_763F@R8.y</a>
                                            rels:
A100.y[R41.x.235||@R0.z]<a href="mailto:_763F@R8.y">_763F@R8.y</a> :  <= R100.y.1F, R101.y.1F, R102.y.1F,
R103.y.1F, R104.y.1F, R105.y.1F, R106.y.1F, R107.y.1F, R108.y.1F, R109.y.1F
   no suitable slots


...</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>