20 lines · plain
1; RUN: opt -S -passes='early-cse' -earlycse-debug-hash < %s | FileCheck %s2; RUN: opt -S -passes='early-cse<memssa>' < %s | FileCheck %s3target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"4target triple = "aarch64--linux-gnu"5 6declare { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0(ptr)7 8; Although the store and the ld4 are using the same pointer, the9; data can not be reused because ld4 accesses multiple elements.10define { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @foo() {11entry:12 store <4 x i16> undef, ptr undef, align 813 %0 = call { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } @llvm.aarch64.neon.ld4.v4i16.p0(ptr undef)14 ret { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> } %015; CHECK-LABEL: @foo(16; CHECK: store17; CHECK-NEXT: call18; CHECK-NEXT: ret19}20