Commit Graph

3 Commits

Author SHA1 Message Date
Mishal Shah
a3cd8bc9e9 [Tests] Codesign the binary before executing the test 2020-08-07 00:26:07 -07:00
Saleem Abdulrasool
d143bfe7db Update licm_and_global_addr.swift
Mark as executable test
2020-04-22 20:53:11 -07:00
Erik Eckstein
1fbad1b089 SIL: fix memory behavior of global_addr for globals with non-fixed layout.
Global variables with resilient types might be allocated into a buffer and not statically in the data segment.
In this case, the global_addr depends on alloc_global being executed first.
We model this by letting global_addr have a side effect.
It prevents e.g. LICM to move a global_addr out of a loop while keeping the alloc_global inside the loop.

rdar://problem/61602640
2020-04-22 16:35:59 +02:00