<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 - LLVM Crashed in X86 DAG->DAG Instruction Selection, with -fprofile-generate"
   href="https://bugs.llvm.org/show_bug.cgi?id=33365">33365</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM Crashed in X86 DAG->DAG Instruction Selection, with -fprofile-generate
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>GlobalISel
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cmtice@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Chrome normally builds with clang without a problem, but if I try adding the
flag '-fprofile-generate', the compilation crashes.

1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../../../../chromeos-cache/distfiles/target/chrome-src-internal/src/ui/gfx/transform_util.cc'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN3gfx18DecomposeTransformEPNS_19DecomposedTransformERKNS_9TransformE'
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
Chromium OS 5.0_pre300080-r7 clang version 5.0.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/clang.git
8ae674d121a0c39b4ae6e83d10caad3fd29dce13)
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm.git
3183fbc849f015fd085ce6724e85ae1de65db4e6) (based on LLVM 5.0.0svn)
Target: x86_64-cros-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg:
/build/falco/tmp/portage/chromeos-base/chromeos-chrome-61.0.3123.0_rc-r1/temp/transform_util-e1da80.cpp
clang-5.0: note: diagnostic msg:
/build/falco/tmp/portage/chromeos-base/chromeos-chrome-61.0.3123.0_rc-r1/temp/transform_util-e1da80.sh
clang-5.0: note: diagnostic msg: 

********************

I'm attaching the two files created by the crash.</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>