15 lines · plain
1; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -O3 -debug-only=amdgpu-attributor -o - %s 2>&1 | FileCheck %s --check-prefixes=NO-CW,NO-LTO2; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes="lto<O3>" -debug-only=amdgpu-attributor -o - %s 2>&1 | FileCheck %s --check-prefixes=NO-CW,LTO3; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes="lto<O3>" -debug-only=amdgpu-attributor -amdgpu-link-time-closed-world=1 -o - %s 2>&1 | FileCheck %s --check-prefixes=CW,LTO4 5; REQUIRES: amdgpu-registered-target6; REQUIRES: asserts7 8; NO-LTO: Running at phase None9; LTO: Running at phase FullLTOPostLink10; NO-CW: Module {{.*}} is not assumed to be a closed world.11; CW: Module {{.*}} is assumed to be a closed world.12define hidden noundef i32 @_Z3foov() {13 ret i32 114}15