Hi,
This patch saves compilation time by caching uses of replace value.
We only need to do propagation on use instructions of the original value, rather than the replacing const value which might have lots of irrelavant uses. As an example, it improves LTO compilation time by 3~4% for one example case in speccpu2017 with Function Specialization enabled.
Thanks,
bin
// Cache uses of V so that we could avoid visiting unwanted users of Const.