On Sun, Aug 10, 2014 at 11:33 PM, Prathamesh Kulkarni
wrote:
> Should we CSE result-op (if result-op is not c_expr) ?
I think that's a premature optimization at this point.
Richard.
> for example:
>
> match-op1 -> result-op1
> match-op2 -> result-op1
>
> we generate code as:
> match-op1
> res
Should we CSE result-op (if result-op is not c_expr) ?
for example:
match-op1 -> result-op1
match-op2 -> result-op1
we generate code as:
match-op1
result-op1
match-op2
result-op1
instead generate:
match-op1
goto l1;
match-op2
goto l1;
l1:
result-op1
In general, for patterns.
match-o