-
Notifications
You must be signed in to change notification settings - Fork 13.3k
memset/memcpy analysis/optimizations need improving #824
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
Comments
Edits a hard-coded string in an unrolled loop |
Bug 1309 is also related to this. |
example with poor memcpy optimization |
Bug 1952 is one specific optimization that we can do, relating it. |
This has gotten a lot better recently, with work Chris and I have done which is now in the MemCpyOpt pass. There's still a lot to do, though. |
I'm closing this open-ended bug, as we'll never catch EVERY case. If you still have specific cases that you'd like to see addressed, please file individual PRs for them. |
Extended Description
Just so this doesn't get lost, I'm filing a "wishlist" item for this.
Date: Wed, 6 Oct 2004 14:25:30 -0500 (CDT)
From: Chris Lattner sabre@nondot.org
Subject: memset optimizations
memset currently inhibits multiple optimizations, e.g. memset/load doesn't
get copy-propagated, memset doesn't cause dead stores to die, and memset
inhibits SRA. This should be fixed!
Also: memset(&X, 4) -> store int 0, X iff X is aligned
Also, memset should not kill unaliased loads/stores.
The text was updated successfully, but these errors were encountered: