[PATCH] D37239: [Instruction] add moveAfter() convenience function; NFCI

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 17:28:41 PDT 2017


dberlin added inline comments.


================
Comment at: lib/IR/Instruction.cpp:101
+  insertAfter(MovePos);
+}
+
----------------
I believe you can just use moveBefore(*MovePos->getParent(), ++MovePos->getIterator());

(Which should be a bit more efficient, and also will match the moveBefore code)


https://reviews.llvm.org/D37239





More information about the llvm-commits mailing list