<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 - Regression in SVN r363875, "[LFTR] Rename variable to minimize confusion [NFC]""
   href="https://bugs.llvm.org/show_bug.cgi?id=42357">42357</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression in SVN r363875, "[LFTR] Rename variable to minimize confusion [NFC]"
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

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

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>martin@martin.st
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>listmail@philipreames.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22130" name="attach_22130" title="Reproduction C code">attachment 22130</a> <a href="attachment.cgi?id=22130&action=edit" title="Reproduction C code">[details]</a></span>
Reproduction C code

Since SVN r363875, "[LFTR] Rename variable to minimize confusion [NFC]",
compiling GLEW for i686 mingw almost doubled in compile time, and produces an
output almost double in size:

$ time clang-prev -target i686-w64-mingw32 -c -O3 glew-preproc-i686.c -w && ls
-lh glew-preproc-i686.o

real    1m3.655s
user    1m3.325s
sys     0m0.331s
-rw-rw-r-- 1 martin martin 615K Jun 21 21:30 glew-preproc-i686.o
$ time clang-new -target i686-w64-mingw32 -c -O3 glew-preproc-i686.c -w && ls
-lh glew-preproc-i686.o

real    1m58.397s
user    1m57.998s
sys     0m0.400s
-rw-rw-r-- 1 martin martin 1.1M Jun 21 21:33 glew-preproc-i686.o


When optimizing the output from "clang -target i686-w64-mingw32 -S -O3
glew-preproc-i686.c -Xclang -disable-llvm-passes -emit-llvm", things behave
like this:


$ time opt-old -O3 glew-preproc-i686.ll -o glew-preproc-i686.bc && ls -lh
glew-preproc-i686.bc

real    0m56.537s
user    0m56.286s
sys     0m0.253s
-rw-rw-r-- 1 martin martin 2.5M Jun 21 21:38 glew-preproc-i686.bc
$ time llc glew-preproc-i686.bc && ls -lh glew-preproc-i686.s

real    0m8.260s
user    0m8.159s
sys     0m0.100s
-rw-rw-r-- 1 martin martin 5.0M Jun 21 21:42 glew-preproc-i686.s



$ time opt-new -O3 glew-preproc-i686.ll -o glew-preproc-i686.bc && ls -lh
glew-preproc-i686.bc

real    1m19.033s
user    1m17.550s
sys     0m0.252s
-rw-rw-r-- 1 martin martin 3.8M Jun 21 21:40 glew-preproc-i686.bc
$ time llc glew-preproc-i686.bc && ls -lh glew-preproc-i686.s

real    0m37.613s
user    0m37.341s
sys     0m0.273s
-rw-rw-r-- 1 martin martin 11M Jun 21 21:45 glew-preproc-i686.s</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>