[Bug rtl-optimization/19038] Loop header copying

steven at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 16 22:55:00 GMT 2004


------- Additional Comments From steven at gcc dot gnu dot org  2004-12-16 22:55 -------
The interesting thing is that the front end already does the header 
"copying" when it generates code: 
 
                              { 
                                int4 D.1164; 
 
                                D.1164 = nmz; 
                                k = 3; 
                                k.12 = k; 
 
                                if (k.12 <= D.1164) 
                                  { 
                                    <D1500>:; 
                                    { 
                                      ...loop body, straight-line code... 
                                      __label_000420:; 
                                      k.12 = k; 
                                      D.1168 = k.12 == D.1164; 
                                      k.12 = k; 
                                      D.1522 = k.12 + 1; 
                                      k = D.1522; 
                                      if (D.1168) 
                                        { 
                                          goto L.51; 
                                        } 
                                      else 
                                        { 
 
                                        } 
                                    } 
                                    goto <D1500>; 
                                  } 
                                else 
                                  { 
 
                                  } 
                                L.51:; 
                              } 
 
 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19038



More information about the Gcc-bugs mailing list