Update moveToVALU method to accept vector of instructions as worklist.
Sort the Worklist in ascending order of instructions as per machine function before picking one instruction to process.
Instruction will be moved to VALU or legalizeOperands is called on it before all the instruction prior to it in machine function are processed. legalizeOperands will be able to process the operands together with this change.
This patch is required to legalize rsrc and soffset of MBUF instruction together and create single waterfall loop. Prerequisite for D141030