From: Justin Lebar Date: Wed, 30 Mar 2016 23:45:38 +0000 (+0000) Subject: [CUDA] Add -disable-llvm-passes to CodeGenCUDA/link-device-bitcode.cu. NFC X-Git-Tag: llvmorg-3.9.0-rc1~10427 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19b648eae3bb85e30d08665305fb506cbff7626a;p=platform%2Fupstream%2Fllvm.git [CUDA] Add -disable-llvm-passes to CodeGenCUDA/link-device-bitcode.cu. NFC We already have this flag in most of the file, but we need it everywhere else, to disable the NVVMReflect pass, which we're explicitly checking doesn't run here. (Upcoming changes to llvm will cause it to be run.) llvm-svn: 264969 --- diff --git a/clang/test/CodeGenCUDA/link-device-bitcode.cu b/clang/test/CodeGenCUDA/link-device-bitcode.cu index de3d39c..869fcb1 100644 --- a/clang/test/CodeGenCUDA/link-device-bitcode.cu +++ b/clang/test/CodeGenCUDA/link-device-bitcode.cu @@ -4,10 +4,10 @@ // REQUIRES: nvptx-registered-target // // Prepare bitcode file to link with -// RUN: %clang_cc1 -triple nvptx-unknown-cuda -emit-llvm-bc -o %t.bc \ -// RUN: %S/Inputs/device-code.ll -// RUN: %clang_cc1 -triple nvptx-unknown-cuda -emit-llvm-bc -o %t-2.bc \ -// RUN: %S/Inputs/device-code-2.ll +// RUN: %clang_cc1 -triple nvptx-unknown-cuda -emit-llvm-bc \ +// RUN: -disable-llvm-passes -o %t.bc %S/Inputs/device-code.ll +// RUN: %clang_cc1 -triple nvptx-unknown-cuda -emit-llvm-bc \ +// RUN: -disable-llvm-passes -o %t-2.bc %S/Inputs/device-code-2.ll // // Make sure function in device-code gets linked in and internalized. // RUN: %clang_cc1 -triple nvptx-unknown-cuda -fcuda-is-device \