-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMDGPU][DAGISel] Be more flexible about what calls are allowed
Remove DAGISel checks on calling conventions. GlobalISel doesn't have these checks either and we prefer it that way (see D152794). Add a simple test like the one introduced in D117479 for GlobalISel. Differential Revision: https://reviews.llvm.org/D153535
- Loading branch information
Showing
3 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py | ||
; RUN: llc -global-isel=0 -stop-after=finalize-isel -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -verify-machineinstrs -o - %s | FileCheck -enable-var-scope %s | ||
|
||
; Test that we don't explode on calls from shaders to functions with the C calling convention. | ||
|
||
define amdgpu_ps void @amdgpu_ps_call_default_cc() { | ||
; CHECK-LABEL: name: amdgpu_ps_call_default_cc | ||
; CHECK: bb.0.main_body: | ||
; CHECK-NEXT: S_ENDPGM 0 | ||
main_body: | ||
call void null() | ||
ret void | ||
} | ||
|
||
define amdgpu_gfx void @amdgpu_gfx_call_default_cc() { | ||
; CHECK-LABEL: name: amdgpu_gfx_call_default_cc | ||
; CHECK: bb.0.main_body: | ||
; CHECK-NEXT: SI_RETURN | ||
main_body: | ||
call void null() | ||
ret void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters