With opaque pointers, we cannot use the pointer element type to determine the LocationSize for the AA query. Instead, -aa-eval tests are now required to have an explicit load or store for any pointer they want to compute alias results for, and the load/store types are used to determine the location size. This may affect ordering of results, and sorting within one result, as the type is not considered part of the sorted string anymore. To somewhat minimize the churn, printing still uses faux typed pointer notation.
15 lines
399 B
LLVM
15 lines
399 B
LLVM
; RUN: opt %s -passes=aa-eval -disable-output -print-all-alias-modref-info 2>&1 | FileCheck %s
|
|
|
|
; CHECK-LABEL: Function: patatino
|
|
; CHECK: NoAlias: i1** %G22, i1*** %G45
|
|
|
|
define void @patatino() {
|
|
BB:
|
|
%G22 = getelementptr i1*, i1** undef, i8 -1
|
|
%B1 = mul i66 undef, 9223372036854775808
|
|
%G45 = getelementptr i1**, i1*** undef, i66 %B1
|
|
load i1*, i1** %G22
|
|
load i1**, i1*** %G45
|
|
ret void
|
|
}
|