[LV] Avoid creating empty reduction entries (NFC)
authorMatthew Simpson <mssimpso@codeaurora.org>
Wed, 6 Jan 2016 12:50:29 +0000 (12:50 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Wed, 6 Jan 2016 12:50:29 +0000 (12:50 +0000)
commitcfa9b54c86ac7eca6718e94ef52d9834cc361b5b
treeb0a968b5633baf1471ee2abfe12abbe35e39f996
parente4ee51a0058c4d5aee56af2b4301d15678d4cc3e
[LV] Avoid creating empty reduction entries (NFC)

This patch prevents us from unintentionally creating entries in the reductions
map for PHIs that are not actually reductions. This is currently not an issue
since we bail out if we encounter PHIs other than inductions or reductions.
However the behavior could become problematic as we add support for additional
recurrence types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256930 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp