This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Fix PR19401: always completely peel loops

On Thu, 14 Jan 2005, Gabriel Dos Reis wrote:

Andrew Pinski <> writes:

| 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:

                                                No optimization
  should be dependent on what front-end you used.
He's right.
It should only depend on the intermediate code you are given, not where it came from.
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.

-- Gaby

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]