Skip to content

Commit 6266820

Browse files
authored
[sycl-post-link] Do not save all split modules in memory (#5021)
Now all split modules are first saved in memory and then processed one by one. Each split module may require tens of megabytes in memory and total amount of split modules may be significant. It all may lead to overflow of RAM memory. Rewrite module splitting in a way that each split module is processed and immediately saved into a file without temporary collecting all modules in RAM. Signed-off-by: Mikhail Lychkov <[email protected]>
1 parent aa12f9d commit 6266820

File tree

2 files changed

+264
-319
lines changed

2 files changed

+264
-319
lines changed

llvm/test/tools/sycl-post-link/spec-constants/DeprecatedFeautres/spec_const_and_split.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ define dso_local spir_kernel void @KERNEL_CCC() {
5555
; CHECK-PROP1: SpecConst=2|
5656
; CHECK-PROP1-NOT: SpecConst2
5757
;
58-
; CHECK-PROP2: [SYCL/specialization constants]
59-
; CHECK-PROP2: [SYCL/specialization constants default values]
58+
; CHECK-PROP2-NOT: [SYCL/specialization constants

0 commit comments

Comments
 (0)