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

[Bug tree-optimization/64567] missed optimization: redundant test before clearing bit(s)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64567

--- Comment #2 from Rasmus Villemoes <rv at rasmusvillemoes dot dk> ---
(In reply to Andreas Schwab from comment #1)
> This transformation is incorrect if the lvalue may be pointing to a
> read-only object.

True. And one may also incur an extra cache penalty if the cache line
containing foo was already held shared but not exclusive.


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