summaryrefslogtreecommitdiff
path: root/src/support/insert_ordered.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-11-15 09:37:03 -0800
committerGitHub <noreply@github.com>2022-11-15 09:37:03 -0800
commitdf41c85856f2ffeea622e879840098f6200aa428 (patch)
tree3be41aba54db1f7ae02429d4774c3b7df5a05916 /src/support/insert_ordered.h
parentb2054b72b7daa89b7ad161c0693befad06a20c90 (diff)
downloadbinaryen-df41c85856f2ffeea622e879840098f6200aa428.tar.gz
binaryen-df41c85856f2ffeea622e879840098f6200aa428.tar.bz2
binaryen-df41c85856f2ffeea622e879840098f6200aa428.zip
GlobalStructInference: Handle cases with just 1 global too (#5253)
Expand GlobalStructInference to operate on cases with a single possible global, and not just 2 or more. Even the case of a single global is useful, it turns out, as we can alter the reference in places like this: (struct.get $type 0 (..ref..) ) No matter what ref is, if there is a single global it must refer to, we can switch to this: (struct.get $type 0 (global.get $global) ) That can unlock further opts later. Note that we can do this even if we don't know what the value actually is - we may not know what the struct.get returns, but we do know what it reads from.
Diffstat (limited to 'src/support/insert_ordered.h')
0 files changed, 0 insertions, 0 deletions