<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:moritz.roth@arm.com" title="Moritz Roth <moritz.roth@arm.com>"> <span class="fn">Moritz Roth</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Bad code generation in post-ra ARMLoadStoreOptimizer pass in thumb1 mode"
   href="http://llvm.org/bugs/show_bug.cgi?id=19972">bug 19972</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;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>moritz.roth@arm.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Bad code generation in post-ra ARMLoadStoreOptimizer pass in thumb1 mode"
   href="http://llvm.org/bugs/show_bug.cgi?id=19972#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Bad code generation in post-ra ARMLoadStoreOptimizer pass in thumb1 mode"
   href="http://llvm.org/bugs/show_bug.cgi?id=19972">bug 19972</a>
              from <span class="vcard"><a class="email" href="mailto:moritz.roth@arm.com" title="Moritz Roth <moritz.roth@arm.com>"> <span class="fn">Moritz Roth</span></a>
</span></b>
        <pre>Hi,

thanks for the report and helpful test case. Looks like this was caused by a
small mistake in the order of operations in the pass which lead to the base
register reset instruction (subs r0, #8) being emitted before the actual
LDM/STM.

I've created a patch at <a href="http://reviews.llvm.org/D4084">http://reviews.llvm.org/D4084</a> which should fix this.
It's been committed as rL210542.

Thanks 
Moritz</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>