1; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s 2; PR4267 3 4target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5 6; CHECK: PartialAlias: double* %p.0.i.0, double* %p3 7 8; %p3 is equal to %p.0.i.0 on the second iteration of the loop, 9; so MayAlias is needed. In practice, basicaa returns PartialAlias 10; for GEPs to ignore TBAA. 11 12define void @foo([3 x [3 x double]]* noalias %p) { 13entry: 14 %p3 = getelementptr [3 x [3 x double]], [3 x [3 x double]]* %p, i64 0, i64 0, i64 3 15 br label %loop 16 17loop: 18 %i = phi i64 [ 0, %entry ], [ %i.next, %loop ] 19 20 %p.0.i.0 = getelementptr [3 x [3 x double]], [3 x [3 x double]]* %p, i64 0, i64 %i, i64 0 21 22 store volatile double 0.0, double* %p3 23 store volatile double 0.1, double* %p.0.i.0 24 25 %i.next = add i64 %i, 1 26 %cmp = icmp slt i64 %i.next, 3 27 br i1 %cmp, label %loop, label %exit 28 29exit: 30 ret void 31} 32