Summary: | DFG CSE should know how to decay a MultiGetByOffset | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> | ||||
Component: | JavaScriptCore | Assignee: | Filip Pizlo <fpizlo> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Bug Depends on: | 159858 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Filip Pizlo
2016-07-16 15:37:52 PDT
Is MultiGetByOffset not dominated by a StructureCheck the way GetByOffset is? (In reply to comment #1) > Is MultiGetByOffset not dominated by a StructureCheck the way GetByOffset is? It's not dominated by a CheckStructure. The MultiGetByOffset does its own structure check. We want one switch statement that both checks that we have the structure we want and loads the value. CheckStructure with multiple structures in its set will be a switch and MultiGetByOffset is always a switch (unless we failed to strength-reduce a one-case MultiGetByOffset), so that would be two switches. That's not cool, because we can't guarantee that B3 will jump-thread or tail-dup two switches in a row. So, MultiGetByOffset is its own check. (In reply to comment #2) > (In reply to comment #1) > > Is MultiGetByOffset not dominated by a StructureCheck the way GetByOffset is? > > It's not dominated by a CheckStructure. The MultiGetByOffset does its own > structure check. > > We want one switch statement that both checks that we have the structure we > want and loads the value. CheckStructure with multiple structures in its > set will be a switch and MultiGetByOffset is always a switch (unless we > failed to strength-reduce a one-case MultiGetByOffset), so that would be two > switches. That's not cool, because we can't guarantee that B3 will > jump-thread or tail-dup two switches in a row. So, MultiGetByOffset is its > own check. Gotcha. I'll work on fixing this. Created attachment 338653 [details]
the patch
Comment on attachment 338653 [details]
the patch
r=me.
|