[Bug tree-optimization/23094] store ccp misses an optimization
dnovillo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 15 14:50:00 GMT 2005
------- Additional Comments From dnovillo at gcc dot gnu dot org 2005-08-15 14:15 -------
(In reply to comment #4)
> Hmm, can someone explain where in store_ccp we stuff constants
> into the mem_ref field of lattice values? There are a few places
> where simple_cst_equal is used to compare a constant to mem_ref
> but AFAICT mem_ref is always the lhs of an expression??
>
Yes. mem_ref holds the actual memory store/load expression (i.e., the
REFERENCE_CLASS_P tree). The actual constant value is always stored in the
CONST_VAL array.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23094
More information about the Gcc-bugs
mailing list