This is the mail archive of the gcc-patches@gcc.gnu.org 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: [patch] Remove unused code from dse.c.


On 03/29/2013 11:24 AM, Lawrence Crowl wrote:

At what point did we stop setting clear_alias_sets?  Was that
intentional or not?

I do not know the answer to either question.
That's what needs to be determined before I'll approve. It means digging a bit.


My view is that we have already lost the feature.  The code
that populates the set is gone.  The remaining code has probably
suffered bitrot because it is not being tested.  Trying to recreate
the population will probably result in inconsistencies anyway,
necessitating a rewrite of the remaining code.  So, the remaining
code has little value, and might have negative value.
But that doesn't mean dropping the code is the right thing to do. The right thing to do is see if the feature was dropped on purpose. If so, then we remove this dead code. If not, then we fix the real problem, namely the code was accidentally disabled (and add suitable tests to the suite to catch this kind of problem in the future).

jeff


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