BoiseState-AdaptLab / spf-ie

Sparse polyhedral framework optimizing compiler frontend
4 stars 2 forks source link

Rewrite to remove return statements where possible #7

Open riftEmber opened 3 years ago

riftEmber commented 3 years ago

Also, do that rewriting

riftEmber commented 2 years ago

I suppose that a single return statement should be allowed at the end of a function.

riftEmber commented 2 years ago

Work done for #37 disallows return statements that are inside any nesting, and disallows any statements to follow a return statement. This effectively implements the restrictions of this issue, except for the rewriting. Rewriting is a separate problem which this issue will now be about.