[llvm-commits] [llvm] r51177 - /llvm/trunk/test/Analysis/BasicAA/licmtest.ll

Owen Anderson resistor at mac.com
Thu May 15 21:25:10 PDT 2008


Author: resistor
Date: Thu May 15 23:25:09 2008
New Revision: 51177

URL: http://llvm.org/viewvc/llvm-project?rev=51177&view=rev
Log:
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.

Modified:
    llvm/trunk/test/Analysis/BasicAA/licmtest.ll

Modified: llvm/trunk/test/Analysis/BasicAA/licmtest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/BasicAA/licmtest.ll?rev=51177&r1=51176&r2=51177&view=diff

==============================================================================
--- llvm/trunk/test/Analysis/BasicAA/licmtest.ll (original)
+++ llvm/trunk/test/Analysis/BasicAA/licmtest.ll Thu May 15 23:25:09 2008
@@ -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]





More information about the llvm-commits mailing list