Re: [Mesa-dev] [PATCH 3/3] nir: Make remove_phis not remove LCSSA phi's

2015-07-28 Thread Thomas Helland
Just thought I'd mention that this is a bit RFC. I was just throwing it out there before dinner so you guys could have a look at it if you feel like it. I was hoping to put the loop analysis on here to, but I'll fix it up to use a DFS approach before sending it out on the list. The way I've solved

[Mesa-dev] [PATCH 3/3] nir: Make remove_phis not remove LCSSA phi's

2015-07-28 Thread Thomas Helland
I was hoping this should fix the problem with the pass getting rerun forever, but apparently not. We still need a solution like this though, so sending it out for some feedback of whether or not this is the way to do it. Signed-off-by: Thomas Helland --- src/glsl/nir/nir.h | 1 +