Insertion point should be set before creating new operations. Differential Revision: https://reviews.llvm.org/D107326