Provide a knob in MemorySSA for passes to query if they're dealing with a pathological testcase: very large number of memory accesses.
While MemorySSA queries are bounded, updates to the analysis are not - they are necessary for correctness. Inserting a new memory access will trigger the renaming of all accesses affected, so an update is liniar in the number of accesses.
The utility introduced here uses the counter used to assign unique IDs in MemorySSA, which is an approximation of how many accesses have been created, not necesarily how many accesses are currently in the function.
The current knob is set to 100000, so an approximation should be enough.
Usecase: triggered in MemCpyOpt on a function with a single BB and 100k+ memoryaccesses.