enso icon indicating copy to clipboard operation
enso copied to clipboard

Remove AliasAnalysis metadata from LocalScope

Open Akirathan opened this issue 6 months ago • 1 comments

LocalScope is used in many places. It is referenced by some runtime objects, like MethodRootNode. The problem is that LocalScope contains references to AliasAnalysis metadata (e.g., AliasGraph in https://github.com/enso-org/enso/blob/develop/engine/runtime-compiler/src/main/scala/org/enso/compiler/context/LocalScope.scala#L34).

Loading AliasAnalysis metadata in IrToTruffle is potentially very slow, as the size of the metadata is enormous. Therefore, we should avoid using AliasAnalysis metadata in IrToTruffle altogether. This first PR (#10729) removed some usages and introduced new, lightweight, FramePointer metadata. In this task, let's remove the references to AliasAnalysis metadata from LocalScope altogether.

### Tasks
- [ ] Remove references to `AliasAnalysis` metadata from `LocalScope`.
- [ ] Ensure that the startup time is improved
- [ ] Try to apply Jaroslav's suggestion from https://github.com/enso-org/enso/pull/10729#pullrequestreview-2242249968

Follow-up of #10129

Akirathan avatar Aug 16 '24 12:08 Akirathan