-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-O2 used_once: keep ops with side-effects #1036
Labels
Comments
rurban
pushed a commit
that referenced
this issue
Feb 27, 2014
allow used_once elimination only for purely functional ops without side-effects. Fixes t/compilers/imcc/reg/alloc.t test 2 alligator 2 - r9629 t/compilers/imcc/reg/spill_old.t test 1 bug \#32996 and some more. set ITPUREFUNC in the parser, as this is the best place to find them: logical un_op and null; artithmetic bin_op and assign_op
Fixed in branch |
rurban
pushed a commit
that referenced
this issue
Feb 27, 2014
allow used_once elimination only for purely functional ops without side-effects. Fixes t/compilers/imcc/reg/alloc.t test 2 alligator 2 - r9629 t/compilers/imcc/reg/spill_old.t test 1 bug \#32996 and some more. set ITPUREFUNC in the parser, as this is the best place to find them: logical un_op and null; artithmetic bin_op and assign_op
rurban
pushed a commit
that referenced
this issue
Feb 27, 2014
rurban
pushed a commit
that referenced
this issue
Mar 4, 2014
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Mar 4, 2014
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Mar 5, 2014
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Mar 5, 2014
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Oct 26, 2014
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Nov 9, 2014
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Jan 10, 2015
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
rurban
pushed a commit
that referenced
this issue
Feb 15, 2016
opt2 fails with changed used_once semantics: I0 = 10 is side-effecting, but *can* be removed if I0 is used only once (GH #1036), ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-O2
t/compilers/imcc/reg/alloc_2.pir
deletes theP0 = pop P1
line because P0 is nowhere else used.but we need to keep it as
pop P1
is just for side-effects, even if the result is ignored.The text was updated successfully, but these errors were encountered: