Skip to content

Commit 5d80d3b

Browse files
committed
[sycl-post-link] Refactor cloned modules processing
ValueToValueMapTy map is not fully release on destruction the data that is allocated on CloneModule call. Also split modules may utilize tens of megabytes and their amount 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 145b9e7 commit 5d80d3b

File tree

2 files changed

+255
-305
lines changed

2 files changed

+255
-305
lines changed

llvm/test/tools/sycl-post-link/spec-constants/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-EMPTY:
58+
; CHECK-PROP2-NOT: [SYCL/specialization constants]

0 commit comments

Comments
 (0)