[Memcpy Loop Lowering] Insert loop BB inbetween the split BB.
authorSean Fertile <sfertile@ca.ibm.com>
Fri, 15 Dec 2017 19:29:12 +0000 (19:29 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Fri, 15 Dec 2017 19:29:12 +0000 (19:29 +0000)
commit42b13343fd503d50d47996b80c53f921463cc875
tree2cd16b0cf9ed3bebe1e5648237768fc6a81aff2f
parent574d7ce95412c95242a936bcfd54f414449ae365
[Memcpy Loop Lowering] Insert loop BB inbetween the split BB.

The original memcpy expansion inserted the loop basic block inbetween
the 2 new basic blocks created by splitting the original block the memcpy
call was in. This commit makes the new memcpy expansion do the same to keep the
layout of the IR matching between the old and new implementations.

Differential Review: https://reviews.llvm.org/D41197

llvm-svn: 320848
llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll