Rematerialize as much as possible before inserting spills and reloads.