This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] RHS INDIRECT_REF optimizations (PR tree-optimization/26069)
On Jan 12, 2008 3:40 AM, Richard Guenther <richard.guenther@gmail.com> wrote:
> Technically I think we should use common machinery via
> folding VIEW_CONVERT_EXPRs for this kind of type-punning and
> not sticking the simplification in indirect-ref folding (that is, in
> indirect-ref folding build_fold a VIEW_CONVERT_EXPR).
To do this, you would then need to extend DECL_GIMPLE_REG_P to all
types and maybe have a pass which also converts some non
DECL_GIMPLE_REG_P to be true if it is valid for them.
This is what I found out the last time I tried this and I never got a
patch which extended DECL_GIMPLE_REG_P as it would cause too many
regressions.
Thanks,
Andrew Pinski