This reverts commit f4b2360c. The patch has no specific order in adding freeze instruction in the entry basic block. It causes failure of CHECK like unit tests.