NFC: Add a test to LV showing that reduction is not possible when reduction var is...
authorAnna Thomas <anna@azul.com>
Mon, 13 Aug 2018 19:55:25 +0000 (19:55 +0000)
committerAnna Thomas <anna@azul.com>
Mon, 13 Aug 2018 19:55:25 +0000 (19:55 +0000)
commitcce7c24af13376e460a217a2bad01568de8fd6fb
treedc44ea2ae99eb5b5309d5ffc5b0ec846afee5c11
parente45a83d4479434d7bd6d7a3adc9e88bc159f2eb1
NFC: Add a test to LV showing that reduction is not possible when reduction var is reset in the loop

Added a test case to reduction showing where it's illegal to identify
vectorize a loop.
Resetting the reduction var during loop iterations disallows us from
widening the dependency cycle to VF, thereby making it illegal to
vectorize the loop.

llvm-svn: 339605
llvm/test/Transforms/LoopVectorize/reduction.ll