[LIR] General refactoring to simplify code and the ease future code review.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 23 Dec 2015 17:29:33 +0000 (17:29 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 23 Dec 2015 17:29:33 +0000 (17:29 +0000)
commit9f5e13c6b0101e83cd0e328b9243e13d928a283a
tree9bae0744b2935ffa882d7e4b4f862b49582a55ba
parenta79baf560c40745a008bc8a3584efa6b14201ee5
[LIR] General refactoring to simplify code and the ease future code review.

Move several checks into isLegalStores. Also, delineate between those stores
that are memset-able and those that are memcpy-able.

http://reviews.llvm.org/D15683
Patch by Haicheng Wu <haicheng@codeaurora.org>!

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