<html>
<head>
<base href="http://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 --- - BasicAA tests fail when updated to check new MayAlias output"
href="http://llvm.org/bugs/show_bug.cgi?id=22462">22462</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>BasicAA tests fail when updated to check new MayAlias output
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Global Analyses
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>george.burgess.iv@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13808" name="attach_13808" title="Test update diff">attachment 13808</a> <a href="attachment.cgi?id=13808&action=edit" title="Test update diff">[details]</a></span>
Test update diff
When opt is passed the -print-may-alias flag, the messages it prints look like:
MayAlias: %Type1 %A, %Type2 %B
BasicAA tests 2003-12-11-ConstExprGEP.ll and 2003-11-04-SimpleCases.ll have ";
CHECK-NOT: May:", which will never match opt's "MayAlias:" statements, even
though the intent was to do so.
In applying the attached diff (which just updates above tests to "CHECK-NOT:
MayAlias:"), both tests mentioned no longer pass. Output from opt run on each
of the tests is below.
SimpleCases:
Function: test: 6 pointers, 0 call sites
MayAlias: %T* %P, [10 x i8]* %C
MayAlias: %T* %A, [10 x i8]* %C
MayAlias: [10 x i8]* %C, i32* %B
MayAlias: %T* %P, i8* %D
MayAlias: %T* %A, i8* %D
MayAlias: i32* %B, i8* %D
MayAlias: [10 x i8]* %C, i8* %D
MayAlias: %T* %P, i8* %E
MayAlias: %T* %A, i8* %E
MayAlias: i32* %B, i8* %E
MayAlias: [10 x i8]* %C, i8* %E
MayAlias: i8* %D, i8* %E
===== Alias Analysis Evaluator Report =====
15 Total Alias Queries Performed
0 no alias responses (0.0%)
12 may alias responses (80.0%)
0 partial alias responses (0.0%)
3 must alias responses (20.0%)
Alias Analysis Evaluator Pointer Alias Summary: 0%/80%/0%/20%
Alias Analysis Mod/Ref Evaluator Summary: no mod/ref!
ConstExprGEP:
Function: test: 7 pointers, 0 call sites
MayAlias: i32* %D, i8* %E
MayAlias: %T* @G, i8* %E
MayAlias: i32* %F, i8* %E
MayAlias: i32* getelementptr inbounds (%T* @G, i64 0, i32 0), i8* %E
MayAlias: i32* %D, i8* %X
MayAlias: %T* @G, i8* %X
MayAlias: i8* %E, i8* %X
MayAlias: i32* %F, i8* %X
MayAlias: i32* getelementptr inbounds (%T* @G, i64 0, i32 0), i8* %X
MayAlias: [10 x i8]* getelementptr inbounds (%T* @G, i64 0, i32 1), i32* %D
MayAlias: %T* @G, [10 x i8]* getelementptr inbounds (%T* @G, i64 0, i32 1)
MayAlias: [10 x i8]* getelementptr inbounds (%T* @G, i64 0, i32 1), i8* %E
MayAlias: [10 x i8]* getelementptr inbounds (%T* @G, i64 0, i32 1), i32* %F
MayAlias: [10 x i8]* getelementptr inbounds (%T* @G, i64 0, i32 1), i32*
getelementptr inbounds (%T* @G, i64 0, i32 0)
MayAlias: [10 x i8]* getelementptr inbounds (%T* @G, i64 0, i32 1), i8* %X
===== Alias Analysis Evaluator Report =====
21 Total Alias Queries Performed
0 no alias responses (0.0%)
15 may alias responses (71.4%)
0 partial alias responses (0.0%)
6 must alias responses (28.5%)
Alias Analysis Evaluator Pointer Alias Summary: 0%/71%/0%/28%
Alias Analysis Mod/Ref Evaluator Summary: no mod/ref!</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>