[MERGE #1536 @rajatd] Bug fix to not remove GetNewScObject in the loop prepass
[MERGE #1536 @rajatd] Bug fix to not remove GetNewScObject in the loop prepass

Merge pull request #1536 from rajatd:getNewScObject

We should wait for the main pass of a loop to make changes to the IR based on value types of operands. In this case GetNewScObject instruction was being removed in the prepass and this led to functional differences from nonative runs.

Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore