commit | 383c55870eda2ce1664d8e9d199b1ba7bacd32ba | [log] [tgz] |
---|---|---|
author | Davide Italiano <davide@freebsd.org> | Mon May 11 21:02:34 2015 +0000 |
committer | Davide Italiano <davide@freebsd.org> | Mon May 11 21:02:34 2015 +0000 |
tree | f7c567aa389d16151113291c2eb9e70657413d83 | |
parent | 0cdb698aaef899bf6a5550f5e2ab60219fda677e [diff] |
[LoopIdiomRecognize] Transform backedge-taken count check into an assertion. runOnCountable() allowed the caller to call on a loop without a predictable backedge-taken count. Change the code so that only loops with computable backdge-count can call this function, in order to catch abuses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237044 91177308-0d34-0410-b5e6-96231b3b80d8