Skip to content
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

Improve/fix loop-invariant code motion #13

Open
jleben opened this issue Mar 19, 2018 · 0 comments
Open

Improve/fix loop-invariant code motion #13

jleben opened this issue Mar 19, 2018 · 0 comments

Comments

@jleben
Copy link
Owner

jleben commented Mar 19, 2018

  • Loop invariant code motion is currently only done on array index expressions.
  • It assumes only a few possible types of subexpressions.
  • It also assumes all function calls have no side effects (like std::max for example).
  • The newly generated identifiers could clash with those from source program.
  • It would produce much nicer code if followed by common subexpression elimination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant