[LIR] General refactoring to simplify code and the ease future code review
authorHaicheng Wu <haicheng@codeaurora.org>
Mon, 4 Jan 2016 21:43:14 +0000 (21:43 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Mon, 4 Jan 2016 21:43:14 +0000 (21:43 +0000)
commit1c201e976697f857662cef38d809d79a1d5bfe62
tree41fbcb1ef00f68aa9ff45207e9823eb9eac84230
parent472704020c5012f76f7e814de140613815955418
[LIR] General refactoring to simplify code and the ease future code review

This is a resubmission of r256336 which was reverted in r256361. The issue was the lack of the invariant check of the memset value in processLooMemSet().

The original message:

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

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