-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV][GISel] Fallback in LowerCall for byval arguments. (#119251)
Our byval call lowering isn't copying the argument. Looks like our SelectionDAG code for byval is different than AArch64 so this may be non-trivial to fix. Reject for now.
- Loading branch information
Showing
3 changed files
with
18 additions
and
25 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
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,16 @@ | ||
; RUN: llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s -check-prefixes=CHECK | ||
; RUN: llc -mtriple=riscv64 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s -check-prefixes=CHECK | ||
|
||
; This file checks that we use the fallback path for things that are known to | ||
; be unsupported on the RISC-V target. It should progressively shrink in size. | ||
|
||
%byval.class = type { i32 } | ||
|
||
declare void @test_byval_arg(ptr byval(%byval.class) %x) | ||
|
||
define void @test_byval_param(ptr %x) { | ||
; CHECK: remark: {{.*}} unable to translate instruction: call | ||
; CHECK-LABEL: warning: Instruction selection used fallback path for test_byval_param | ||
call void @test_byval_arg(ptr byval(%byval.class) %x) | ||
ret void | ||
} |