<html>
<head>
<base href="http://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:anemet@apple.com" title="Adam Nemet <anemet@apple.com>"> <span class="fn">Adam Nemet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - opt-viewer should have a way to deterministically debug"
href="http://bugs.llvm.org/show_bug.cgi?id=31949">bug 31949</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - opt-viewer should have a way to deterministically debug"
href="http://bugs.llvm.org/show_bug.cgi?id=31949#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - opt-viewer should have a way to deterministically debug"
href="http://bugs.llvm.org/show_bug.cgi?id=31949">bug 31949</a>
from <span class="vcard"><a class="email" href="mailto:anemet@apple.com" title="Adam Nemet <anemet@apple.com>"> <span class="fn">Adam Nemet</span></a>
</span></b>
<pre>Committed a fix in r295080:
[opt-viewer] For single-process, fall back on map instead of Pool.map
This allows for nicer backtrace and debugging when -j1 is passed:
$ opt-viewer.py CMakeFiles/LLVMScalarOpts.dir/LoopVersioningLICM.cpp.opt.yaml
html
Traceback (most recent call last):
File "/org/llvm/utils/opt-viewer/opt-viewer.py", line 405, in <module>
generate_report(pmap, all_remarks, file_remarks, args.source_dir,
args.output_dir)
File "/org/llvm/utils/opt-viewer/opt-viewer.py", line 362, in
generate_report
pmap(_render_file_bound, file_remarks.items())
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py",
line 251, in map
return self.map_async(func, iterable, chunksize).get()
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py",
line 567, in get
raise self._value
Exception: blah
$ opt-viewer.py -j 1
CMakeFiles/LLVMScalarOpts.dir/LoopVersioningLICM.cpp.opt.yaml html
Traceback (most recent call last):
File "/org/llvm/utils/opt-viewer/opt-viewer.py", line 405, in <module>
generate_report(pmap, all_remarks, file_remarks, args.source_dir,
args.output_dir)
File "/org/llvm/utils/opt-viewer/opt-viewer.py", line 362, in
generate_report
pmap(_render_file_bound, file_remarks.items())
File "/org/llvm/utils/opt-viewer/opt-viewer.py", line 317, in _render_file
SourceFileRenderer(source_dir, output_dir, filename).render(remarks)
File "/org/llvm/utils/opt-viewer/opt-viewer.py", line 168, in __init__
raise Exception("blah")
Exception: blah</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>