You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
30
external/llvm/test/Analysis/CFLAliasAnalysis/Steensgaard/constant-over-index.ll
vendored
Normal file
30
external/llvm/test/Analysis/CFLAliasAnalysis/Steensgaard/constant-over-index.ll
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
; RUN: opt < %s -cfl-steens-aa -aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s
|
||||
|
||||
; CFL AA currently returns PartialAlias, BasicAA returns MayAlias, both seem
|
||||
; acceptable (although we might decide that we don't want PartialAlias, and if
|
||||
; so, we should update this test case accordingly).
|
||||
; CHECK: {{PartialAlias|MayAlias}}: double* %p.0.i.0, double* %p3
|
||||
|
||||
; %p3 is equal to %p.0.i.0 on the second iteration of the loop,
|
||||
; so MayAlias is needed.
|
||||
|
||||
define void @foo([3 x [3 x double]]* noalias %p) {
|
||||
entry:
|
||||
%p3 = getelementptr [3 x [3 x double]], [3 x [3 x double]]* %p, i64 0, i64 0, i64 3
|
||||
br label %loop
|
||||
|
||||
loop:
|
||||
%i = phi i64 [ 0, %entry ], [ %i.next, %loop ]
|
||||
|
||||
%p.0.i.0 = getelementptr [3 x [3 x double]], [3 x [3 x double]]* %p, i64 0, i64 %i, i64 0
|
||||
|
||||
store volatile double 0.0, double* %p3
|
||||
store volatile double 0.1, double* %p.0.i.0
|
||||
|
||||
%i.next = add i64 %i, 1
|
||||
%cmp = icmp slt i64 %i.next, 3
|
||||
br i1 %cmp, label %loop, label %exit
|
||||
|
||||
exit:
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user