Teach ScalarEvolution to simplify smax and umax when it can prove
authorDan Gohman <gohman@apple.com>
Tue, 13 Apr 2010 16:51:03 +0000 (16:51 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 13 Apr 2010 16:51:03 +0000 (16:51 +0000)
commit28287794d4e9e1e07742f8a937cfc2be8af627c6
tree77ae45cdc77d3c475a8d8c28bff2a7971c413103
parent3ab131243e0150854df2f94ea3f472cb7ca00236
Teach ScalarEvolution to simplify smax and umax when it can prove
that one operand is always greater than another.

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