Open
Description
The remove_constants_phis
replaces the arugments of an instruction without freeing the original list.
One option for fixing this would be to build up the list to replace it as a vector, and then clearing and re-initializing the old arguments list. However, the remove_constant_phis
pass might not be necessary at all after @jameysharp's refactoring of the SSA builder, so it would be good to investigate whether it's applying at all to start with.