-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into users/rampitec/01-16-_amdgpu_add_test_for_va…
…lu_hoisiting_from_wwm_region._nfc
- Loading branch information
Showing
55 changed files
with
4,234 additions
and
851 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,42 @@ | ||
## This test checks that inline is properly handled by BOLT on aarch64. | ||
|
||
# REQUIRES: system-linux | ||
|
||
# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o | ||
# RUN: %clang %cflags -O0 %t.o -o %t.exe -Wl,-q | ||
# RUN: llvm-bolt --inline-small-functions --print-inline --print-only=_Z3barP1A \ | ||
# RUN: %t.exe -o %t.bolt | FileCheck %s | ||
|
||
# CHECK: BOLT-INFO: inlined 0 calls at 1 call sites in 2 iteration(s). Change in binary size: 4 bytes. | ||
# CHECK: Binary Function "_Z3barP1A" after inlining { | ||
# CHECK-NOT: bl _Z3fooP1A | ||
# CHECK: ldr x8, [x0] | ||
# CHECK-NEXT: ldr w0, [x8] | ||
|
||
.text | ||
.globl _Z3fooP1A | ||
.type _Z3fooP1A,@function | ||
_Z3fooP1A: | ||
ldr x8, [x0] | ||
ldr w0, [x8] | ||
ret | ||
.size _Z3fooP1A, .-_Z3fooP1A | ||
|
||
.globl _Z3barP1A | ||
.type _Z3barP1A,@function | ||
_Z3barP1A: | ||
stp x29, x30, [sp, #-16]! | ||
mov x29, sp | ||
bl _Z3fooP1A | ||
mul w0, w0, w0 | ||
ldp x29, x30, [sp], #16 | ||
ret | ||
.size _Z3barP1A, .-_Z3barP1A | ||
|
||
.globl main | ||
.p2align 2 | ||
.type main,@function | ||
main: | ||
mov w0, wzr | ||
ret | ||
.size main, .-main |
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,48 @@ | ||
## This test checks that inline is properly handled by BOLT on aarch64. | ||
|
||
# REQUIRES: system-linux | ||
|
||
# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o | ||
# RUN: %clang %cflags -O0 %t.o -o %t.exe -Wl,-q | ||
# RUN: llvm-bolt --inline-small-functions --print-inline --print-only=test \ | ||
# RUN: %t.exe -o %t.bolt | FileCheck %s | ||
|
||
#CHECK: BOLT-INFO: inlined 0 calls at 1 call sites in 2 iteration(s). Change in binary size: 4 bytes. | ||
#CHECK: Binary Function "test" after inlining { | ||
#CHECK-NOT: bl indirect | ||
#CHECK: add w0, w1, w0 | ||
#CHECK-NEXT: blr x2 | ||
|
||
.text | ||
.globl indirect | ||
.type indirect,@function | ||
indirect: | ||
add w0, w1, w0 | ||
br x2 | ||
.size indirect, .-indirect | ||
|
||
.globl test | ||
.type test,@function | ||
test: | ||
stp x29, x30, [sp, #-32]! | ||
stp x20, x19, [sp, #16] | ||
mov x29, sp | ||
mov w19, w1 | ||
mov w20, w0 | ||
bl indirect | ||
add w8, w19, w20 | ||
cmp w0, #0 | ||
csinc w0, w8, wzr, eq | ||
ldp x20, x19, [sp, #16] | ||
ldp x29, x30, [sp], #32 | ||
ret | ||
.size test, .-test | ||
|
||
.globl main | ||
.type main,@function | ||
main: | ||
mov w0, wzr | ||
ret | ||
.size main, .-main | ||
|
||
|
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,14 @@ | ||
// REQUIRES: asserts | ||
|
||
// RUN: %clang_cc1 -std=c++23 -x c++-header -emit-pch -fmodule-format=obj \ | ||
// RUN: -o %t.pch %s \ | ||
// RUN: -mllvm -debug-only=pchcontainer &>%t-pch.ll | ||
// RUN: cat %t-pch.ll | FileCheck %s | ||
|
||
template<class...> | ||
using __void_t [[gnu::nodebug]] = void; | ||
|
||
__void_t<> func() {} | ||
|
||
// CHECK: !DICompileUnit | ||
// CHECK-NOT: __void_t |
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
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
Oops, something went wrong.