The changes are a result of discussion of D33685.
It solves the following problem:
- We can inform getGEPCost about simplified indices to help it with calculating the cost. But getGEPCost does not take into account the context which GEPs are used in.
- We have getUserCost which can take the context into account but we cannot inform about simplified indices.
With the changes getUserCost will have access to additional information as getGEPCost has.
The provided list is empty by default.