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

Combine subsequent Iconst_symbol instructions #5412

Closed
vicuna opened this issue Dec 1, 2011 · 2 comments
Closed

Combine subsequent Iconst_symbol instructions #5412

vicuna opened this issue Dec 1, 2011 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Dec 1, 2011

Original bug ID: 5412
Reporter: meurer
Status: closed (set by @xavierleroy on 2015-12-11T18:28:08Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.12.1
Fixed in version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Tags: patch
Monitored by: @hcarty

Bug description

This patch helps to reduce code size on load/store architectures (i.e. ARM) and with position independent code on amd64/i386, mostly for the generated __entry functions, which are usually up to 10-20% shorter (depending on arch).

File attachments

@vicuna
Copy link
Author

vicuna commented Jan 31, 2012

Comment author: @xavierleroy

I've been working on a common subexpression elimination pass for the OCaml back-end, which, if successful, should subsume the factoring of Iconst_symbol instructions proposed here. The CSE is in branch branches/backend-optims of the OCaml SVN. Performance gains (on AMD64) are unimpressive so far, but I continue experimental evaluation in my spare time. To be continued.

@vicuna
Copy link
Author

vicuna commented Apr 26, 2014

Comment author: @xavierleroy

CSE optimization is now in trunk, and I believe it achieves similar results. (Observed on amd64, to be checked on ARM.)

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