OSDN Git Service

LoopIdiom: Add checks to avoid turning memmove into an infinite loop.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 27 Oct 2012 15:18:28 +0000 (15:18 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 27 Oct 2012 15:18:28 +0000 (15:18 +0000)
commitbadffcf8fddf3978acf9843a43e66766e9e830c6
tree14095ac554d0100cdb8f797d6d44b409b8641c37
parentd11c5d08a5f4f030d6e357378d0d46d93efd9a59
LoopIdiom: Add checks to avoid turning memmove into an infinite loop.

I don't think this is possible with the current implementation but that may change eventually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166877 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
test/Transforms/LoopIdiom/memset_noidiom.ll