Commit 639fe12a authored by Ben Gamari's avatar Ben Gamari 🐢

Revert "XXX: Disable selector optimization and shortcutting"

This reverts commit e1df1b1e24c66fc9e391dfa275ec2e0332b698ac.
parent 9258ce7c
...@@ -816,9 +816,6 @@ loop: ...@@ -816,9 +816,6 @@ loop:
StgClosure *r; StgClosure *r;
const StgInfoTable *i; const StgInfoTable *i;
r = ((StgInd*)q)->indirectee; r = ((StgInd*)q)->indirectee;
// XXX: disable shortcutting
copy(p,info,q,sizeofW(StgInd),gen_no);
return;
if (GET_CLOSURE_TAG(r) == 0) { if (GET_CLOSURE_TAG(r) == 0) {
i = r->header.info; i = r->header.info;
if (IS_FORWARDING_PTR(i)) { if (IS_FORWARDING_PTR(i)) {
...@@ -873,8 +870,6 @@ loop: ...@@ -873,8 +870,6 @@ loop:
return; return;
case IND: case IND:
// XXX: disable shortcutting
copy(p,info,q,sizeofW(StgInd),gen_no);
// follow chains of indirections, don't evacuate them // follow chains of indirections, don't evacuate them
q = ((StgInd*)q)->indirectee; q = ((StgInd*)q)->indirectee;
*p = q; *p = q;
...@@ -1243,9 +1238,6 @@ selector_loop: ...@@ -1243,9 +1238,6 @@ selector_loop:
goto bale_out; goto bale_out;
} }
// XXX: Disable selector optimization
goto bale_out;
info = INFO_PTR_TO_STRUCT(info); info = INFO_PTR_TO_STRUCT(info);
switch (info->type) { switch (info->type) {
case WHITEHOLE: case WHITEHOLE:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment