One more measure to prevent potential problems with dangling pointers.
This patch adds validation methods in debug mode to OrderedInstructions
and OrderedBasicBlock to make sure that we are not dealing with dangling
pointers and other data inconsistencies while working with them.
The validation is called from InstructionPrecedenceTracking whenever it
makes its own validation.