[LLVMbugs] [Bug 22462] New: BasicAA tests fail when updated to check new MayAlias output

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 4 11:19:55 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22462

            Bug ID: 22462
           Summary: BasicAA tests fail when updated to check new MayAlias
                    output
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Global Analyses
          Assignee: unassignedbugs at nondot.org
          Reporter: george.burgess.iv at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13808
  --> http://llvm.org/bugs/attachment.cgi?id=13808&action=edit
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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150204/3de4a3ea/attachment.html>


More information about the llvm-bugs mailing list