This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32183] reassoc can more extra calculations into a loop
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2007 00:24:45 -0000
- Subject: [Bug tree-optimization/32183] reassoc can more extra calculations into a loop
- References: <bug-32183-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-06-02 00:24 -------
This happens with integers too. That is if you do:
s/float float32/int float32/
You still get the diff:
@@ -184,15 +178,15 @@ cmn_prior (incep, varnorm, nfr, ceplen,
goto <bb 8> (<L64>);
<L102>:;
- D.1857_156 = nframe_lsm.64_93 + 1;
D.1858_191 = (unsigned int) nfr_17(D);
D.1859_190 = D.1858_191 + 0x0ffffffff;
D.1860_52 = (int32) D.1859_190;
+ D.1857_156 = nframe_lsm.64_93 + 1;
nframe_lsm.64_35 = D.1857_156 + D.1860_52;
- D.1861_38 = nframe_lsm.64_93 + 1;
D.1862_37 = (unsigned int) nfr_17(D);
D.1863_155 = D.1862_37 + 0x0ffffffff;
D.1864_6 = (int) D.1863_155;
+ D.1861_38 = nframe_lsm.64_93 + 1;
nframe.8_36 = D.1861_38 + D.1864_6;
# nframe_73 = VDEF <nframe_134>
nframe = nframe_lsm.64_35;
@@ -223,7 +217,7 @@ cmn_prior (incep, varnorm, nfr, ceplen,
D.1890_104 = (unsigned int) i_14;
# VUSE <SMT.14_63>
D.1709_89 = MEM[base: sum.6_87, index: D.1890_104, step: 4];
- D.1710_90 = D.1709_89 * sf_77;
+ D.1710_90 = sf_77 * D.1709_89;
D.1891_102 = (unsigned int) i_14;
# SMT.14_183 = VDEF <SMT.14_63>
MEM[base: cur_mean.3_82, index: D.1891_102, step: 4] = D.1710_90;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32183