OSDN Git Service

Fix the expansion of umax and smax in the case where one or more of
authorDan Gohman <gohman@apple.com>
Tue, 14 Jul 2009 20:57:04 +0000 (20:57 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 14 Jul 2009 20:57:04 +0000 (20:57 +0000)
commit0196dc5733bf3c6a71f7de1f631f2c43e5809fd9
tree6b7e3786656e5491bab100fe2ab41202520fbb5b
parent001c2b433fd7fc30904abb4eafc78ac996430fe6
Fix the expansion of umax and smax in the case where one or more of
the operands have pointer type, so that the resulting type matches
the original SCEV type, and so that unnecessary ptrtoints are
avoided in common cases.

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