This modification was put in place so the ReduceMetadata pass doesn't have to consider debug functions.
This diff also simplifies the ReduceFunctions pass by directly replacing the function users, instead of going over every instruction to remove ones with undef function calls.