OSDN Git Service

Reapply: [LIR] Add support for creating memsets from loops with a negative stride.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 28 Oct 2015 14:38:49 +0000 (14:38 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 28 Oct 2015 14:38:49 +0000 (14:38 +0000)
commit7fd22f795a4d49486858e61302a1035b88b6d1a6
tree4eb3266554f7ca18f37d1c2c2979c5659560892d
parentfc0a8b3db5f2f55a03aa1b9ce6275a9aa4d8a109
Reapply: [LIR] Add support for creating memsets from loops with a negative stride.

The simple fix is to prevent forming memcpy from loops with a negative stride.

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