brintos

brintos / llvm-project-archived public Read only

0
0
Text · 860 B · e793728 Raw
27 lines · plain
1; RUN: opt -passes='gvn' -pass-remarks-output=%t.yaml %s2; RUN: FileCheck %s < %t.yaml3 4; Check that there's no assert from trying to the uses of the constant5; null.6 7; CHECK: --- !Missed8; CHECK-NEXT: Pass:            gvn9; CHECK-NEXT: Name:            LoadClobbered10; CHECK-NEXT: Function:        c11; CHECK-NEXT: Args:12; CHECK-NEXT:   - String:          'load of type '13; CHECK-NEXT:   - Type:            i6414; CHECK-NEXT:   - String:          ' not eliminated'15; CHECK-NEXT:   - String:          ' because it is clobbered by '16; CHECK-NEXT:   - ClobberedBy:     store17; CHECK-NEXT: ...18define void @c(ptr addrspace(21) %a) {19entry:20  br label %for.cond21 22for.cond:                                         ; preds = %for.cond, %entry23  %load = load i64, ptr addrspace(21) null, align 124  store i64 %load, ptr addrspace(21) %a, align 125  br label %for.cond26}27