Investors & landlords

Is zeroing out the negative cost basis and increasing/decreasing the proceeds to achieve the same gain(loss) acceptable to the IRS?