This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15911] VRP/DOM does not like TRUTH_AND_EXPR
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Apr 2006 16:54:23 -0000
- Subject: [Bug tree-optimization/15911] VRP/DOM does not like TRUTH_AND_EXPR
- References: <bug-15911-1008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #23 from rguenth at gcc dot gnu dot org 2006-04-17 16:54 -------
It also helps for propagating loop versioning guard information like
int foo(int i, int j)
{
int res = 0;
if (i==1 && j==2)
for (;i>0;--i)
res += j;
else
for (;i>0;--i)
res += j;
return res;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15911