Chris Lattner 05f18920e1 Teach inst combine to merge GEPs through PHIs. This is really
important because it is sinking the loads using the GEPs, but
not the GEPs themselves.  This triggers 647 times on 403.gcc
and makes the .s file much much nicer.  For example before:

        je      LBB1_87 ## bb78
LBB1_62:        ## bb77
        leal    84(%esi), %eax
LBB1_63:        ## bb79
        movl    (%eax), %eax
...
LBB1_87:        ## bb78
        movl    $0, 4(%esp)
        movl    %esi, (%esp)
        call    L_make_decl_rtl$stub
        jmp     LBB1_62 ## bb77


after:

        jne     LBB1_63 ## bb79
LBB1_62:        ## bb78
        movl    $0, 4(%esp)
        movl    %esi, (%esp)
        call    L_make_decl_rtl$stub
LBB1_63:        ## bb79
        movl    84(%esi), %eax

The input code was (and the GEPs are merged and
the PHI is now eliminated by instcombine):

        br i1 %tmp233, label %bb78, label %bb77
bb77:           
        %tmp234 = getelementptr %struct.tree_node* %t_addr.3, i32 0, i32 0, i32 22              
        br label %bb79
bb78:           
        call void @make_decl_rtl(%struct.tree_node* %t_addr.3, i8* null) nounwind
        %tmp235 = getelementptr %struct.tree_node* %t_addr.3, i32 0, i32 0, i32 22              
        br label %bb79
bb79:           
        %iftmp.12.0.in = phi %struct.rtx_def** [ %tmp235, %bb78 ], [ %tmp234, %bb77 ]           
        %iftmp.12.0 = load %struct.rtx_def** %iftmp.12.0.in             



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60322 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-01 02:34:36 +00:00
..
2007-04-15 07:38:21 +00:00
2007-05-05 01:59:05 +00:00
2007-05-19 06:50:37 +00:00
2007-11-08 18:45:15 +00:00
2007-11-22 23:47:13 +00:00
2007-12-12 15:21:32 +00:00
2008-03-06 06:50:03 +00:00
2008-05-18 04:11:26 +00:00
2008-05-31 17:10:28 +00:00
2008-07-12 05:04:38 +00:00
2008-07-17 06:07:20 +00:00
2008-05-20 05:46:13 +00:00
2007-08-12 16:55:14 +00:00
2008-03-09 08:16:40 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-28 00:54:45 +00:00
2008-03-25 04:26:08 +00:00
2008-05-16 02:59:42 +00:00
2008-03-25 04:26:08 +00:00
2007-10-12 05:29:53 +00:00
2007-08-06 20:04:16 +00:00
2008-05-09 05:19:28 +00:00
2008-03-09 08:16:40 +00:00
2008-03-09 08:16:40 +00:00
2007-04-15 07:38:21 +00:00
2008-03-09 08:16:40 +00:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.