As suggested in D37121, here's a wrapper for removeFromParent() + insertAfter().
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/IR/Instruction.cpp | ||
---|---|---|
101 | 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) |
Comment Actions
LGTM, I haven't done much work in this area but @dberlin's comment has been addressed and it looks like a straight forward NFC.
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)