LoopIdiom: Give up when the loop is not in canonical form.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 21 Sep 2012 17:27:23 +0000 (17:27 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 21 Sep 2012 17:27:23 +0000 (17:27 +0000)
commiteba9aca5cda7328ba908824745df175109497f17
tree0c9253b4c4cf7d87baabf0b798d56202221493c6
parentad5fec30d1fc09518080284464e083856e47b899
LoopIdiom: Give up when the loop is not in canonical form.

We rely on it when doing the transforms. This can happen when there is an
indirectbr in  the loop.

Fixes PR13892.

llvm-svn: 164383
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/test/Transforms/LoopIdiom/non-canonical-loop.ll [new file with mode: 0644]