This patch will allow developers to remove unwanted instruction Defs (most likely from within a target specific InstrPostProcess) by setting that Def's RegisterID to 0.
I tested it on a few examples and it worked as expected and had no errors.
I have commit access now, so if you (Andrea) want to hold off on committing this, I'll ask Quentin to show me how to commit it myself tomorrow (assuming you don't have any objections).