OSDN Git Service

[Instruction] add moveAfter() convenience function; NFCI
authorSanjay Patel <spatel@rotateright.com>
Tue, 29 Aug 2017 14:07:48 +0000 (14:07 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 29 Aug 2017 14:07:48 +0000 (14:07 +0000)
commit1bf0915d7a50a12c46b4e42a6e5336fa1f3e5f7f
tree72ca32da66deb89544aba863fad01b1280db487b
parentd0babe35c8c31c1730e74968463022a459835649
[Instruction] add moveAfter() convenience function; NFCI

As suggested in D37121, here's a wrapper for removeFromParent() + insertAfter(),
but implemented using moveBefore() for symmetry/efficiency.

Differential Revision: https://reviews.llvm.org/D37239

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312001 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instruction.h
lib/CodeGen/AtomicExpandPass.cpp
lib/CodeGen/CodeGenPrepare.cpp
lib/IR/Instruction.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp