optimize: refactor common dce peephole patterns into dce