OSDN Git Service

Add zero-length check to memcpy/memset load store loop expansion
authorTeresa Johnson <tejohnson@google.com>
Wed, 28 Jun 2017 13:07:37 +0000 (13:07 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 28 Jun 2017 13:07:37 +0000 (13:07 +0000)
commit457765feeb515d37d3977e01c1f29af9e87e160d
treee448d23daec4cfed635313f03e28803703172663
parent79b4061151c329a8a31ec7c5790b9f1d005ed7b9
Add zero-length check to memcpy/memset load store loop expansion

Summary:
I was testing using this expansion logic in other cases besides
NVPTX, and found some runtime failures due to the lack of a check
for a zero length memcpy/memset before the loop. There is already
such a check in the memmove expansion code though.

Reviewers: hfinkel

Subscribers: jholewinski, wdng, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LowerMemIntrinsics.cpp
test/CodeGen/NVPTX/lower-aggr-copies.ll