[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

2022-07-15 Thread Darrell.Wright at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 --- Comment #8 from Darrell Wright --- What about something like a __builtin_overwrite( ptr, size_t ) that tells the compiler that the range specified will be written. It forms a contract to do so with the compiler and would allow the memset

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

2022-01-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 --- Comment #7 from Richard Biener --- DSE could in theory prune live-bytes from a store inside a loop by looking at SCEV / niter info. That'll cost though, and it's not clear where it would nicely fit.

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 Andrew Pinski changed: What|Removed |Added Status|RESOLVED|NEW Resolution|DUPLICATE

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 Andrew Pinski changed: What|Removed |Added Summary|Fail to eliminate deadstore |memset is not elimited when