OSDN Git Service

Simplify [su]max(MAX, n) to MAX. This comes up in loop tripcount
authorDan Gohman <gohman@apple.com>
Wed, 24 Jun 2009 14:46:22 +0000 (14:46 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 24 Jun 2009 14:46:22 +0000 (14:46 +0000)
commite5aceed168799af9c109308e84c4845aa6fbe77a
tree4063a9e5a4a40386d090a0c304300a3ac4b52282
parent32a81a3f6d75c5343e7df65ce5d228f2128ca943
Simplify [su]max(MAX, n) to MAX. This comes up in loop tripcount
computations in loops with multiple exits.

Adjust the testcase for PR4436 so that the relevant portion isn't
optimized away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74073 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarSimplify/loop_evaluate7.ll
test/Transforms/IndVarSimplify/loop_evaluate8.ll [new file with mode: 0644]