<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 SEGV after indirect call promotion"
   href="https://bugs.llvm.org/show_bug.cgi?id=51397">51397</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm SEGV after indirect call promotion
          </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>Miscellaneous Instrumentation passes
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25116" name="attach_25116" title="test.ll">attachment 25116</a> <a href="attachment.cgi?id=25116&action=edit" title="test.ll">[details]</a></span>
test.ll

Starting from
<a href="https://github.com/llvm/llvm-project/commit/e4f66a10556c82e2ebf2469fafc1c26639f15be8">https://github.com/llvm/llvm-project/commit/e4f66a10556c82e2ebf2469fafc1c26639f15be8</a>,
we have seen SEGV in one of our internal test. 

I extracted a testcase test.ll to reproduce the same failure:
opt -passes=pgo-icall-prom -profile-summary-hot-count=10 -S test.ll -o
/dev/null

PLEASE submit a bug report to <a href="http://go/llvm-crash-bug">http://go/llvm-crash-bug</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: opt -passes=pgo-icall-prom
-profile-summary-hot-count=10 -S test.ll -o /dev/null
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  opt             0x000056271b85e438 llvm::sys::RunSignalHandlers() + 248
1  opt             0x000056271b861271
2  libpthread.so.0 0x00007f689dff79a0
3  opt             0x000056271b6b50ce
4  opt             0x000056271b6b2ac6
5  opt             0x000056271b6c7f9e
6  opt             0x000056271b6c03e4
7  opt             0x000056271b6ab3b7
8  opt             0x000056271b6b1d63
llvm::VerifierAnalysis::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 99
9  opt             0x0000562719e8f80f
llvm::detail::AnalysisPassModel<llvm::Module, llvm::VerifierAnalysis,
llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module>::Invalidator>::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 15
10 opt             0x000056271b687634
llvm::AnalysisManager<llvm::Module>::getResultImpl(llvm::AnalysisKey*,
llvm::Module&) + 500
11 opt             0x000056271b6b1e8f llvm::VerifierPass::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 111
12 opt             0x0000562718f94832 llvm::detail::PassModel<llvm::Module,
llvm::VerifierPass, llvm::PreservedAnalyses,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 18
13 opt             0x000056271b684dfe llvm::PassManager<llvm::Module,
llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&,
llvm::AnalysisManager<llvm::Module>&) + 510
14 opt             0x0000562718f8ba2a llvm::runPassPipeline(llvm::StringRef,
llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*,
llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*,
llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind,
llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) + 13386
15 opt             0x0000562718f9b389 main + 6089
16 libc.so.6       0x00007f689de65bbd __libc_start_main + 253
17 opt             0x0000562718f87169 _start + 41
Segmentation fault</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>