OSDN Git Service

Teach ScalarEvolution how to compute a tripcount for a loop with
authorDan Gohman <gohman@apple.com>
Fri, 19 Feb 2010 18:12:07 +0000 (18:12 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 19 Feb 2010 18:12:07 +0000 (18:12 +0000)
commit00cb5b724547a821516292fe5cded7c6a5358bda
treea7de32f5f0495e9ca18a39599e62d221d4edf950
parent6b89aa57e6506f073579398bd74845db9463b9f1
Teach ScalarEvolution how to compute a tripcount for a loop with
true or false as its exit condition. These are usually eliminated by
SimplifyCFG, but the may be left around during a pass which wishes
to preserve the CFG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96683 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/trip-count10.ll [new file with mode: 0644]
test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll
test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll
test/Transforms/IndVarSimplify/2003-12-15-Crash.ll
test/Transforms/IndVarSimplify/2005-11-18-Crash.ll
test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll
test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll
test/Transforms/IndVarSimplify/avoid-i0.ll
test/Transforms/IndVarSimplify/max-pointer.ll