brintos

brintos / llvm-project-archived public Read only

0
0
Text · 505 B · 5dc2feb Raw
21 lines · plain
1; RUN: opt -S -passes=gvn-hoist,newgvn -verify-memoryssa < %s | FileCheck %s2 3; Check that we end up with one load and one store, in the right order4; CHECK-LABEL:  define void @test_it(5; CHECK: store6; CHECK-NOT: store7; CHECK-NOT: load8 9%rec894.0.1.2.3.12 = type { i16 }10 11@a = external global %rec894.0.1.2.3.1212 13define void @test_it() {14bb2:15  store i16 undef, ptr @a, align 116  %_tmp61 = load i16, ptr @a, align 117  store i16 undef, ptr @a, align 118  %_tmp92 = load i16, ptr @a, align 119  ret void20}21