I just realized RemovePseudoStackPass does exactly what PromotePseudoStackToStackPass should do. Should just rename the pass. However this pass doesnt promote concretized sp when sp is passed (or a variable allocated in stack) to a function, because we dont convert it to a ptr. Temporary fix to that is function signatures ( which registers, a ptr or an int etc.)
I just realized
RemovePseudoStackPass
does exactly whatPromotePseudoStackToStackPass
should do. Should just rename the pass. However this pass doesnt promote concretized sp when sp is passed (or a variable allocated in stack) to a function, because we dont convert it to a ptr. Temporary fix to that is function signatures ( which registers, a ptr or an int etc.)