Commit c9b469c5 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vcc: Simplify v_dont_optimize condition

parent a3a5d2f6
...@@ -191,9 +191,7 @@ vcc_EmitProc(struct vcc *tl, struct proc *p) ...@@ -191,9 +191,7 @@ vcc_EmitProc(struct vcc *tl, struct proc *p)
maskcmp = "&"; maskcmp = "&";
} }
if (dyn == 0 && if (dyn == 0 && (p->calledfrom & VCL_MET_TASK_H) == p->calledfrom)
(p->calledfrom & VCL_MET_TASK_H) != 0 &&
(p->calledfrom & ~VCL_MET_TASK_H) == 0)
cc_adv = "v_dont_optimize "; cc_adv = "v_dont_optimize ";
else else
cc_adv = ""; cc_adv = "";
......
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