Re: [PATCH] cortex-a57-fma-steering.c fixes (PR target/84272)

2018-02-16 Thread James Greenhalgh
-steering.c fixes (PR target/84272) Hi! As mentioned in the PR, in the cortex-a57-fma-steering.c optimization pass we may use fma_node/fma_root_node data after they were deleted and leak leaf nodes because of an early continue; (the loop with to_process.safe_push (*child_iter); in the body will do

[PATCH] cortex-a57-fma-steering.c fixes (PR target/84272)

2018-02-09 Thread Jakub Jelinek
Hi! As mentioned in the PR, in the cortex-a57-fma-steering.c optimization pass we may use fma_node/fma_root_node data after they were deleted and leak leaf nodes because of an early continue; (the loop with to_process.safe_push (*child_iter); in the body will do nothing if list is empty, but freei