1 ; RUN: opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output < %s 2>&1 | FileCheck %s
3 ; Check that BasicAA falls back to MayAlias (instead of PartialAlias) when none
4 ; of its little tricks are applicable.
6 ; CHECK: MayAlias: float* %arrayidxA, float* %arrayidxB
8 define void @fallback_mayalias(float* noalias nocapture %C, i64 %i, i64 %j) local_unnamed_addr {
11 %mul = shl nsw i64 %j, 4
12 %addA = add nsw i64 %mul, %shl
14 %addB = add nsw i64 %mul, %orB
16 %arrayidxA = getelementptr inbounds float, float* %C, i64 %addA
17 store float undef, float* %arrayidxA, align 4
19 %arrayidxB = getelementptr inbounds float, float* %C, i64 %addB
20 store float undef, float* %arrayidxB, align 4