提交 26bd6caf authored 作者: Lijun Xue's avatar Lijun Xue

add conditions

上级 e266f7af
...@@ -977,8 +977,14 @@ class VM_Linker(link.LocalLinker): ...@@ -977,8 +977,14 @@ class VM_Linker(link.LocalLinker):
if reuse_out: if reuse_out:
reallocated_info[ins] = [ins, reuse_out] reallocated_info[ins] = [ins, reuse_out]
for pair in reallocated_info.values(): lazy = self.lazy
storage_map[pair[1]][0] = storage_map[pair[0]][0] if lazy is None:
lazy = config.vm.lazy
if lazy is None:
lazy = not all([(not th.lazy) for th in thunks])
if not (lazy or (config.profile and config.profile_memory) or self.use_cloop or self.callback):
for pair in reallocated_info.values():
storage_map[pair[1]] = storage_map[pair[0]]
for node in order: for node in order:
try: try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论