This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] CCP and non-destructive folding problems
- From: law at redhat dot com
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 26 Feb 2003 17:18:07 -0700
- Subject: Re: [tree-ssa] CCP and non-destructive folding problems
- Reply-to: law at redhat dot com
In message <1046304111 dot 1114 dot 32 dot camel at frodo>, Diego Novillo writes:
>> A general note -- from looking at your patches it appeared that you were
>> trying to get the two folders to always return the same results. That's
>> not a particularly interesting thing to do.
>>
>> The (poorly named) nondestructive folder is used for constant discovery,
>> and as a result stuff like simplifying var + 0 to var isn't really
>> interesting.
>>
>Yes. I got caught by this. I see now that you had something else in
>mind for the nd-folder. Maybe it would make sense to rename it or
>simply document its intended use?
I think I'll end up re-naming it and updating its comments to more
clearly indicate it's intended purpose. I caught myself a couple times
making the same mistake :-)
jeff