This is the mail archive of the gcc@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]

Re: Combine versus volatile (Was: Re: Performance of Integer Multiplication on PIII)


    Unfortunately I am not at all sure if it is needed in combine - I am
    not able to come with counterexample where it can cause problems.
    Combine, in worst case, IMO can change the size of memory read and I
    am not quite sure if we require this to not change in our volatile
    definition.

We do require this not to change.

There are also other more obscure cases, but I can't think of them just now.

I agree that we can *a bit* more in optimizing volatile references, but I
don't think we need to: they should be used very sparingly and we should treat
them quite conservatively.


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