Re: [PATCH] Avoid redundant BLOCK lookup/set

2019-03-26 Thread Jakub Jelinek
On Tue, Mar 26, 2019 at 02:34:40PM +0100, Richard Biener wrote: > Just found this in one of my dev trees and think it's suitable at > this stage as a general speedup. > > gimple_block involves querying an on-the-side map in libcpp > since it is encoded in the location_t location. This means > cac

[PATCH] Avoid redundant BLOCK lookup/set

2019-03-26 Thread Richard Biener
Just found this in one of my dev trees and think it's suitable at this stage as a general speedup. gimple_block involves querying an on-the-side map in libcpp since it is encoded in the location_t location. This means caching is beneficial. It's also pointless to copy gimple_block once you've