Revert rGe6ccb57bb3f6b761f2310e97fd6ca99eff42f73e "[SLP] Add cost model for `llvm...
[llvm-project.git] / llvm / test / Analysis / BasicAA / fallback-mayalias.ll
blob63d784d433c6b14e1678d12624dd36694fcb1c3f
1 ; RUN: opt -aa-pipeline=basic-aa -passes=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 {
9 entry:
10   %cmp = icmp ne i64 %i, %j
11   call void @llvm.assume(i1 %cmp)
13   %arrayidxA = getelementptr inbounds float, float* %C, i64 %i
14   store float undef, float* %arrayidxA, align 4
16   %arrayidxB = getelementptr inbounds float, float* %C, i64 %j
17   store float undef, float* %arrayidxB, align 4
19   ret void
22 declare void @llvm.assume(i1)