<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm/test/Transforms/Reassociate, branch release_27</title>
<subtitle>http://llvm.org</subtitle>
<id>https://git.amat.us/llvm/atom/test/Transforms/Reassociate?h=release_27</id>
<link rel='self' href='https://git.amat.us/llvm/atom/test/Transforms/Reassociate?h=release_27'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/'/>
<updated>2010-03-05T07:18:54Z</updated>
<entry>
<title>fix a nice subtle reassociate bug which would only occur</title>
<updated>2010-03-05T07:18:54Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2010-03-05T07:18:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=893075f46e9d07e3fe94e2b0e0f3ff8ae4061549'/>
<id>urn:sha1:893075f46e9d07e3fe94e2b0e0f3ff8ae4061549</id>
<content type='text'>
in a very specific use pattern embodied in the carefully
reduced testcase.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97794 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Add a test for my change to disable reassociation for i1 types.</title>
<updated>2010-02-06T01:16:25Z</updated>
<author>
<name>Bob Wilson</name>
<email>bob.wilson@apple.com</email>
</author>
<published>2010-02-06T01:16:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=8d535859e583183591503aa63cd4559271803920'/>
<id>urn:sha1:8d535859e583183591503aa63cd4559271803920</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95465 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>filecheckize</title>
<updated>2010-01-18T21:58:32Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2010-01-18T21:58:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=f08872048ff5683759610c7d4c6b41751912e939'/>
<id>urn:sha1:f08872048ff5683759610c7d4c6b41751912e939</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93775 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>only factor from expressions whose uses are empty and whose</title>
<updated>2010-01-09T06:01:36Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2010-01-09T06:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=c2d1b6949c5141d21827cc94daea6ae4b1a9c750'/>
<id>urn:sha1:c2d1b6949c5141d21827cc94daea6ae4b1a9c750</id>
<content type='text'>
base is the right expression type.  This fixes PR5981.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93045 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>fix an infinite loop in reassociate building emacs.</title>
<updated>2010-01-05T04:55:35Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2010-01-05T04:55:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=5f94af0f725690a75b18909da2ff8cee0f93bebb'/>
<id>urn:sha1:5f94af0f725690a75b18909da2ff8cee0f93bebb</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92679 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>When factoring multiply expressions across adds, factor both </title>
<updated>2010-01-01T01:13:15Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2010-01-01T01:13:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=9506c930aa1f7c5fbf1e0e1e6bfae71f4a61ee15'/>
<id>urn:sha1:9506c930aa1f7c5fbf1e0e1e6bfae71f4a61ee15</id>
<content type='text'>
positive and negative forms of constants together.  This 
allows us to compile:

int foo(int x, int y) {
    return (x-y) + (x-y) + (x-y);
}

into:

_foo:                                                       ## @foo
	subl	%esi, %edi
	leal	(%rdi,%rdi,2), %eax
	ret

instead of (where the 3 and -3 were not factored):

_foo:
        imull   $-3, 8(%esp), %ecx
        imull   $3, 4(%esp), %eax
        addl    %ecx, %eax
        ret

this started out as:
    movl    12(%ebp), %ecx
    imull   $3, 8(%ebp), %eax
    subl    %ecx, %eax
    subl    %ecx, %eax
    subl    %ecx, %eax
    ret

This comes from PR5359.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92381 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>test case we alredy get right.</title>
<updated>2010-01-01T00:50:00Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2010-01-01T00:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=75954e0bbd83d7f9f95ac82b46c92cb9eec25870'/>
<id>urn:sha1:75954e0bbd83d7f9f95ac82b46c92cb9eec25870</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92380 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>reuse negates where possible instead of always creating them from scratch.</title>
<updated>2009-12-31T20:34:32Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2009-12-31T20:34:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=35239934517c6fcd52e3e965f40e03f74aa4d11d'/>
<id>urn:sha1:35239934517c6fcd52e3e965f40e03f74aa4d11d</id>
<content type='text'>
This allows us to optimize test12 into:

define i32 @test12(i32 %X) {
  %factor = mul i32 %X, -3                        ; &lt;i32&gt; [#uses=1]
  %Z = add i32 %factor, 6                         ; &lt;i32&gt; [#uses=1]
  ret i32 %Z
}

instead of:

define i32 @test12(i32 %X) {
  %Y = sub i32 6, %X                              ; &lt;i32&gt; [#uses=1]
  %C = sub i32 %Y, %X                             ; &lt;i32&gt; [#uses=1]
  %Z = sub i32 %C, %X                             ; &lt;i32&gt; [#uses=1]
  ret i32 %Z
}



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92373 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>teach reassociate to factor x+x+x -&gt; x*3.  While I'm at it,</title>
<updated>2009-12-31T19:24:52Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2009-12-31T19:24:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=69e98e2c0f7a1a1a8e3547b57e3e78e1142b8a64'/>
<id>urn:sha1:69e98e2c0f7a1a1a8e3547b57e3e78e1142b8a64</id>
<content type='text'>
fix RemoveDeadBinaryOp to actually do something.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92368 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>simple fix for an incorrect factoring which causes a</title>
<updated>2009-12-31T08:33:49Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2009-12-31T08:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=13a754ce92ece15cf6b90d9fbc37a5c8a1cca06a'/>
<id>urn:sha1:13a754ce92ece15cf6b90d9fbc37a5c8a1cca06a</id>
<content type='text'>
miscompilation, PR5458.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92354 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
</feed>
