[Memcpy Loop Lowering] Only calculate residual size/bytes copied when needed.
authorSean Fertile <sfertile@ca.ibm.com>
Sat, 16 Dec 2017 22:41:39 +0000 (22:41 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Sat, 16 Dec 2017 22:41:39 +0000 (22:41 +0000)
commit68d7f9da76e39819a377ab405b5e5cf2b5298466
treefe6acff8696ae69a1f42f68c08db39d1eef62606
parent849b717c86a234d8d592eef6fe8ea3f3993baa52
[Memcpy Loop Lowering] Only calculate residual size/bytes copied when needed.

If the loop operand type is int8 then there will be no residual loop for the
unknown size expansion. Dont create the residual-size and bytes-copied values
when they are not needed.

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