34 lines · plain
1; RUN: opt -passes=metarenamer -rename-only-inst=1 -S < %s | FileCheck %s2target triple = "x86_64-pc-linux-gnu"3 4; CHECK: %struct.foo_xxx = type { i32, float, %struct.bar_xxx }5; CHECK: %struct.bar_xxx = type { i32, double }6%struct.bar_xxx = type { i32, double }7%struct.foo_xxx = type { i32, float, %struct.bar_xxx }8 9; CHECK: @global_3_xxx = common global10@global_3_xxx = common global i32 0, align 411 12; CHECK-LABEL: func_4_xxx13; CHECK-NOT: %114; CHECK-NOT: %215; CHECK-NOT: %316; CHECK-NOT: %417; CHECK: %.int_arg = call i64 @len()18define void @func_4_xxx(ptr sret(%struct.foo_xxx) %agg.result) nounwind uwtable ssp {19 %1 = alloca %struct.foo_xxx, align 820 store i32 1, ptr %1, align 421 %2 = getelementptr inbounds %struct.foo_xxx, ptr %1, i32 0, i32 122 store float 2.000000e+00, ptr %2, align 423 %3 = getelementptr inbounds %struct.foo_xxx, ptr %1, i32 0, i32 224 store i32 3, ptr %3, align 425 %4 = getelementptr inbounds %struct.bar_xxx, ptr %3, i32 0, i32 126 store double 4.000000e+00, ptr %4, align 827 %.int_arg = call i64 @len()28 call void @llvm.memcpy.p0.p0.i64(ptr align 8 %agg.result, ptr align 8 %1, i64 %.int_arg, i1 false)29 ret void30}31 32declare i64 @len()33declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) nounwind34