[Bug tree-optimization/104106] Fail to remove stores to VLA inside loops

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106 --- Comment #3 from Richard Biener --- I think DSE doesn't quite understand free() as must-def, likewise for __builtin_stack_restore though that is _much_ more difficult to tie to a specific alloca allocation. It would be nice if the gimplifier

[Bug tree-optimization/104106] Fail to remove stores to VLA inside loops

2022-01-19 Thread denis.campredon at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106 --- Comment #2 from denis.campredon at gmail dot com --- The missed optimisations are also present if the arrays are allocated with malloc or new.

[Bug tree-optimization/104106] Fail to remove stores to VLA inside loops

2022-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED