Re: CFG operation leading to errors

2017-11-18 Thread Segher Boessenkool
Hi Claudiu, On Fri, Nov 17, 2017 at 03:05:23PM +, Claudiu Zissulescu wrote: > I've found a potential issue when performing CFG operations for hardware > loops. > > When a port is using hardware loops (like ARC) makes use of reorg_loops to > find and analyze loops that end in loop_end instru

Re: Finding all CALL_EXPR tree nodes during GENERIC

2017-11-18 Thread Richard Biener
On November 18, 2017 5:38:35 PM GMT+01:00, Katsunori Kumatani wrote: >Hello, I'm doing some testing with a gcc plugin (also helped me >understand a lot of how GCC works) but I've hit a roadblock. > >I want to find all of a function body's CALL_EXPR nodes (i.e. what >calls it has) early during GEN

Finding all CALL_EXPR tree nodes during GENERIC

2017-11-18 Thread Katsunori Kumatani
Hello, I'm doing some testing with a gcc plugin (also helped me understand a lot of how GCC works) but I've hit a roadblock. I want to find all of a function body's CALL_EXPR nodes (i.e. what calls it has) early during GENERIC, so I assume the PLUGIN_PRE_GENERICIZE hook is what I should use right?