From eb8eaa89a589e0a63f4053a401668d1fd916e4cd Mon Sep 17 00:00:00 2001 From: Pawel Wodnicki Date: Wed, 19 Dec 2012 09:57:57 +0000 Subject: Sync-up SROA notes git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@170521 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ReleaseNotes.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index fbcafc3f00..1fc16a36d7 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -579,12 +579,23 @@

-

SROA - We've re-written SROA to be significantly more powerful. -

+

SROA - We’ve re-written SROA to be significantly more powerful and generate +code which is much more friendly to the rest of the optimization pipeline. +Previously this pass had scaling problems that required it to only operate on +relatively small aggregates, and at times it would mistakenly replace a large +aggregate with a single very large integer in order to make it a scalar SSA +value. The result was a large number of i1024 and i2048 values representing any +small stack buffer. These in turn slowed down many subsequent optimization +paths.

+

The new SROA pass uses a different algorithm that allows it to only promote to +scalars the pieces of the aggregate actively in use. Because of this it doesn’t +require any thresholds. It also always deduces the scalar values from the uses +of the aggregate rather than the specific LLVM type of the aggregate. These +features combine to both optimize more code with the pass but to improve the +compile time of many functions dramatically.

-- cgit v1.2.3