This is the mail archive of the
mailing list for the GCC project.
Re: [RFC] Fix PR19401: always completely peel loops
On Thu, 14 Jan 2005, Gabriel Dos Reis wrote:
Andrew Pinski <firstname.lastname@example.org> writes:He's right.
| On Jan 13, 2005, at 6:09 PM, Gabriel Dos Reis wrote:
| > I disagree. Optimizations should support language usages/patterns and
| > language idioms. Not all languages have the same idioms or usage
| > patterns. There are optimizations that can benefits to set of
| > languages; but not all of them fall into that observation.
| > We've been through this many times.
| Yes they might use different idioms but most of the time the
| optimizations don't do anything for the languages which use
| that feature so it should not matter to them. Anything which turns
You left out your statement I was objecting to:
should be dependent on what front-end you used.
It should only depend on the intermediate code you are given, not where it
This optimization should be turned on or off by seeing whether it would be
profitable (for some definition of profitable) on the code given, not
because the code came from the C++ or C or whatever FE.