brintos

brintos / llvm-project-archived public Read only

0
0
Text · 607 B · 09daed6 Raw
20 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=global-variables --test FileCheck --test-arg --check-prefixes=INTERESTING --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck --check-prefixes=RESULT %s < %t3 4; The global variable reduction was trying to delete use instructions5; of globals for some reason, and breaking the basic blocks that had6; global uses in the terminator7 8; RESULT-NOT: @zed9@zed = global i32 010 11; INTERESTING: @bar12; RESULT: @bar13@bar = global i32 114 15; RESULT: define ptr @zed_user() {16; RESULT-NEXT: ret ptr null17define ptr @zed_user() {18  ret ptr @zed19}20