[PATCH] D20430: [AMDGPU] Remove exit-on-error flag from test (PR27762)

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 06:37:36 PDT 2016


rovka created this revision.
rovka added a reviewer: arsenm.
rovka added subscribers: llvm-commits, rengolin.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: kzhuravl, arsenm.

Similar to r269948, but for argument lowering.

Fixes PR27762

http://reviews.llvm.org/D20430

Files:
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll

Index: test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll
===================================================================
--- test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll
+++ test/CodeGen/AMDGPU/no-hsa-graphics-shaders.ll
@@ -1,4 +1,4 @@
-; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa -exit-on-error < %s 2>&1 | FileCheck %s
+; RUN: not llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa < %s 2>&1 | FileCheck %s
 
 ; CHECK: in function pixel_s{{.*}}: unsupported non-compute shaders with HSA
 define amdgpu_ps void @pixel_shader() #0 {
Index: lib/Target/AMDGPU/SIISelLowering.cpp
===================================================================
--- lib/Target/AMDGPU/SIISelLowering.cpp
+++ lib/Target/AMDGPU/SIISelLowering.cpp
@@ -668,7 +668,7 @@
     DiagnosticInfoUnsupported NoGraphicsHSA(
         *Fn, "unsupported non-compute shaders with HSA", DL.getDebugLoc());
     DAG.getContext()->diagnose(NoGraphicsHSA);
-    return SDValue();
+    return DAG.getEntryNode();
   }
 
   SmallVector<ISD::InputArg, 16> Splits;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20430.57780.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160519/028e380d/attachment.bin>


More information about the llvm-commits mailing list