<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 --- - Non-determinism when freeing passes"
href="https://llvm.org/bugs/show_bug.cgi?id=27097">27097</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Non-determinism when freeing passes
</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>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>Core LLVM classes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hxy9243@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>The output from -debug-pass=Executions provides non-deterministic order when
freeing passes.
Following is the invoking commandline. It's tested on trunk version of LLVM as
of 03/28/2016.
CC=$PATH_TO_CLANG
diff -u <($CC -O3 -mllvm -debug-pass=Executions hello.c 2>&1 | cut -d' ' -f4- )
<($CC -O3 -mllvm -debug-pass=Executions hello.c 2>&1 | cut -d' ' -f4-)
Example output:
--- /proc/self/fd/14 2016-03-28 12:13:01.815417440 -0500
+++ /proc/self/fd/15 2016-03-28 12:13:01.815417440 -0500
@@ -487,8 +487,8 @@
Executing Pass 'Loop-Closed SSA Form Pass' on Function 'main'...
Executing Pass 'Scalar Evolution Analysis' on Function 'main'...
Executing Pass 'Loop Pass Manager' on Function 'main'...
- Freeing Pass 'Function Alias Analysis Results' on Function 'main'...
Freeing Pass 'Canonicalize natural loops' on Function 'main'...
+ Freeing Pass 'Function Alias Analysis Results' on Function 'main'...
Freeing Pass 'Loop-Closed SSA Form Pass' on Function 'main'...
Executing Pass 'Alignment from assumptions' on Function 'main'...
Freeing Pass 'Scalar Evolution Analysis' on Function 'main'...</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>