<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ARM][load / store optimization pass] Missed optimization: coalesce pre-increment"
   href="https://bugs.llvm.org/show_bug.cgi?id=44467">44467</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ARM][load / store optimization pass] Missed optimization: coalesce pre-increment
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>missing-feature
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>diogo.sampaio@arm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22991" name="attach_22991" title="Minimal MIR case">attachment 22991</a> <a href="attachment.cgi?id=22991&action=edit" title="Minimal MIR case">[details]</a></span>
Minimal MIR case

Missed optimization:
When running

llc --print-before-all --start-before=arm-ldst-opt missed.mir -o -


we obtain:
        push.w  {r4, r5, r6, r7, r8, r10, r11, lr}
        sub     sp, #8
        strd    r0, r1, [sp]            @ 8-byte Folded Spill
        @ InlineAsm Start
        @ InlineAsm End
        ldrd    r0, r1, [sp], #8        @ 8-byte Folded Reload
        pop.w   {r4, r5, r6, r7, r8, r10, r11, pc}

I would expect the strd to be pre-incremented, as:
        push.w  {r4, r5, r6, r7, r8, r10, r11, lr}
        strd    r0, r1, [sp, #-8]!
        @ InlineAsm Start
        @ InlineAsm End
        ldrd    r0, r1, [sp], #8
        pop.w   {r4, r5, r6, r7, r8, r10, r11, pc}</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>