brintos

brintos / llvm-project-archived public Read only

0
0
Text · 438 B · 79590d7 Raw
15 lines · plain
1; RUN: not opt -passes=verify -disable-output < %s 2>&1 | FileCheck %s2 3; CHECK: invariant.group metadata is only for loads and stores4; CHECK-NEXT: alloca5; CHECK-NEXT: invariant.group metadata is only for loads and stores6; CHECK-NEXT: ret void7define void @f() {8  %a = alloca i32, !invariant.group !09  %b = load i32, ptr %a, !invariant.group !010  store i32 43, ptr %a, !invariant.group !011  ret void, !invariant.group !012}13 14!0 = !{}15