23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 62; RUN: opt < %s -passes=memcpyopt,mldst-motion,gvn -S | FileCheck %s3 4declare void @check(i8)5 6declare void @write(ptr %res)7 8define void @test1() {9; CHECK-LABEL: define void @test1() {10; CHECK-NEXT: [[TMP1:%.*]] = alloca [10 x i8], align 111; CHECK-NEXT: call void @write(ptr [[TMP1]])12; CHECK-NEXT: [[TMP2:%.*]] = load i8, ptr [[TMP1]], align 113; CHECK-NEXT: call void @check(i8 [[TMP2]])14; CHECK-NEXT: ret void15;16 %1 = alloca [10 x i8]17 call void @write(ptr %1)18 %2 = load i8, ptr %119 call void @check(i8 %2)20 ret void21}22 23