1 ; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -hoist-common-insts=true -S | FileCheck %s
6 ; CHECK-LABEL: @test_load_combine_metadata(
7 ; Check that align metadata is combined
8 ; CHECK: load ptr, ptr %p
9 ; CHECK-SAME: !align ![[ALIGN:[0-9]+]]
12 define void @test_load_combine_metadata(i1 %c, ptr %p) {
13 br i1 %c, label %t, label %f
16 %v1 = load ptr, ptr %p, !align !0
17 call void @bar(ptr %v1)
21 %v2 = load ptr, ptr %p, !align !1
22 call void @baz(ptr %v2)
29 ; CHECK: ![[ALIGN]] = !{i64 8}