<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Cortex-A5 codegen suboptimal?"
   href="https://llvm.org/bugs/show_bug.cgi?id=26135">26135</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cortex-A5 codegen suboptimal?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: ARM
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tulipawn@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It seems code generation for Cortex-A5 and armv7 doesn't provide much benefit,
sometimes even coming out a little slower (compared to default and v6
respectively). 

Firstly, our old friend from issue #26106, w/o NEON and unrolling:

default cpu - v7, v6:

test sum_deque   ... bench:       5,219 ns/iter (+/- 56), 4,967 ns/iter (+/-
50)

test sum_deque_2 ... bench:       3,272 ns/iter (+/- 40), 3,112 ns/iter (+/-
22)

It seems v6 code is faster on this cpu.


Secondly a few benchmarks, where the cortex-a5 target is either equal or
slower. (4-core)

Spectral-norm benchmark, v7:
$ time ./spectral 5500

default cpu                        cortex-a5

real    0m9.106s         real    0m9.051s
user    0m34.110s        user    0m34.240s
sys     0m0.040s         sys     0m0.020s

Fannkuch benchmark:
$ time ./fannkuch 12

real    0m30.017s         real    0m30.645s
user    1m55.570s         user    1m56.350s
sys     0m0.030s          sys     0m0.010s


Command used to compile:
rustc -C opt-level=3 -C target-feature=+v7 -C target-cpu=cortex-a5

Those were just a few examples off the top of my head, probably not the best
ones. I'm sure I've also seen an example or two benefiting from the cortex-a5
target but can't remember which.</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>