Use a domtree pre-order instead of a CFG RPO for coalescing.
The stack implementation if the Budimlic dominator forest doesn't work correctly with a CFG RPO. It needs the domtree pre-order. Also handle EBB pre-order vs inst-level preorder. Manage the stack according to EBB dominance. Look for a dominating value by searching the stack. This is different from the Budimlic algorithm because we're computing the dominator tree pre-order with EBB granularity only. Fixes #207.
This commit is contained in:
1263
cranelift/filetests/regalloc/coalescing-207.cton
Normal file
1263
cranelift/filetests/regalloc/coalescing-207.cton
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user