This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49959] ABS pattern is not recognized
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Jan 2012 08:03:40 +0000
- Subject: [Bug tree-optimization/49959] ABS pattern is not recognized
- Auto-submitted: auto-generated
- References: <bug-49959-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49959
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-21 08:03:40 UTC ---
If we had a pass which was able to convert:
<bb 3>:
iftmp.0_6 = (long unsigned int) D.1708_4;
goto <bb 5>;
<bb 4>:
D.1712_8 = -D.1708_4;
iftmp.0_9 = (long unsigned int) D.1712_8;
<bb 5>:
# iftmp.0_1 = PHI <iftmp.0_6(3), iftmp.0_9(4)>
Into:
<bb 3>:
goto <bb 5>;
<bb 4>:
D.1712_8 = -D.1708_4;
<bb 5>:
# t_N = PHI<D.1708_4(3), D.1712_8(4)>
iftmp.0_1 = (long unsigned int)t_n;
And then PHIOPT would recognize it. So this is really the code commoning.