diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-07 19:06:13 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-07 19:06:13 +0000 |
commit | 4d52c6d622811d00d40b914a4ebd1996b1eed95d (patch) | |
tree | f1e85818a92e6e37a890fc1c85e4037bf1e6f3d6 /test/Analysis/ScalarEvolution | |
parent | 22a5b298201d62daea3e06718469d8ad017895e1 (diff) | |
download | llvm-4d52c6d622811d00d40b914a4ebd1996b1eed95d.tar.gz llvm-4d52c6d622811d00d40b914a4ebd1996b1eed95d.tar.bz2 llvm-4d52c6d622811d00d40b914a4ebd1996b1eed95d.tar.xz |
Optimize ScalarEvolution's SCEVComplexityCompare predicate: don't go
scrounging through SCEVUnknown contents and SCEVNAryExpr operands;
instead just do a simple deterministic comparison of the precomputed
hash data.
Also, since this is more precise, it eliminates the need for the slow
N^2 duplicate detection code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/ScalarEvolution')
-rw-r--r-- | test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll b/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll index 1626c1f11a..cba20ee7b8 100644 --- a/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll +++ b/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll @@ -22,5 +22,5 @@ afterfor: ; preds = %forinc, %entry ret i32 %j.0.lcssa } -; CHECK: backedge-taken count is (-2147483632 + ((-1 + (-1 * %x)) smax (-1 + (-1 * %y)))) +; CHECK: backedge-taken count is (-2147483632 + ((-1 + (-1 * %y)) smax (-1 + (-1 * %x)))) |