This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13962] New: [tree-ssa] make "fold" use alias information to optimize pointer comparisons
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Feb 2004 18:22:51 -0000
- Subject: [Bug optimization/13962] New: [tree-ssa] make "fold" use alias information to optimize pointer comparisons
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Given 2 pointers p and q, if the alias information says that p and q
cannot alias, then comparisons like p == q and p != q can be optimized away.
There are quite a few examples in:
testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c
--
Summary: [tree-ssa] make "fold" use alias information to optimize
pointer comparisons
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13962