brintos

brintos / llvm-project-archived public Read only

0
0
Text · 716 B · 52eb494 Raw
23 lines · plain
1; RUN: opt -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output < %s 2>&1 | FileCheck %s2 3; Check that BasicAA falls back to MayAlias (instead of PartialAlias) when none4; of its little tricks are applicable.5 6; CHECK: NoAlias: float* %arrayidxA, float* %arrayidxB7 8define void @fallback_mayalias(ptr noalias nocapture %C, i64 %i, i64 %j) local_unnamed_addr {9entry:10  %cmp = icmp ne i64 %i, %j11  call void @llvm.assume(i1 %cmp)12 13  %arrayidxA = getelementptr inbounds float, ptr %C, i64 %i14  store float undef, ptr %arrayidxA, align 415 16  %arrayidxB = getelementptr inbounds float, ptr %C, i64 %j17  store float undef, ptr %arrayidxB, align 418 19  ret void20}21 22declare void @llvm.assume(i1)23