diff options
author | Owen Anderson <resistor@mac.com> | 2008-05-16 04:25:09 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-05-16 04:25:09 +0000 |
commit | 90d27365409d9311f9e0511f476549a8968d584f (patch) | |
tree | 5190d0729ec2ff41aa99abc16ff710bb01efb85c /test/Analysis | |
parent | b2ae9e34db381a38bc6bdd2334f471130e38a984 (diff) | |
download | external_llvm-90d27365409d9311f9e0511f476549a8968d584f.zip external_llvm-90d27365409d9311f9e0511f476549a8968d584f.tar.gz external_llvm-90d27365409d9311f9e0511f476549a8968d584f.tar.bz2 |
Fix this test. It was testing broken behavior in that it required ADCE to eliminate
a potentially infinite loop, which is undesirable. Instead, test the LICM behavior
that we're really interested in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/BasicAA/licmtest.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Analysis/BasicAA/licmtest.ll b/test/Analysis/BasicAA/licmtest.ll index e65a453..cfef63b 100644 --- a/test/Analysis/BasicAA/licmtest.ll +++ b/test/Analysis/BasicAA/licmtest.ll @@ -1,9 +1,8 @@ ; Test that LICM uses basicaa to do alias analysis, which is capable of ; disambiguating some obvious cases. If LICM is able to disambiguate the -; two pointers, then the load should be hoisted, and the store sunk. Thus -; the loop becomes empty and can be deleted by ADCE. +; two pointers, then the load should be hoisted, and the store sunk. -; RUN: llvm-as < %s | opt -basicaa -licm --adce | llvm-dis | not grep Loop +; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext @A 1 | not grep Loop @A = global i32 7 ; <i32*> [#uses=3] @B = global i32 8 ; <i32*> [#uses=2] |