> Even though we define gather_load_cost and scatter_store_cost in the > cost tables, they are never actually used for IFN gather/scatters. > This is because the vectorizer costs them as scalar loads and stores > instead of dedicated vector_gather_load / vector_scatter_store > operations. > > This patch makes the cost model recognize VMAT_GATHER_SCATTER_IFN and > use the proper table costs.
Hehe, I actually have a vectorizer fix for this in flight that I'm going to send to day. I want us to emit vect_gather_load/store instead of ab-using the scalar cost kind (and then backtracking). So please wait a bit with this. -- Regards Robin
