Model stacksave and stackrestore as both writing memory, since we
[oota-llvm.git] / test / Transforms / Inline / alloca_test.ll
index 46c4848b9556c64c5bbd835f9101dfe447b0ee8f..35ded4f0d763c4c33b8c2280f59b9942027bc1da 100644 (file)
@@ -1,10 +1,11 @@
 ; This test ensures that alloca instructions in the entry block for an inlined
 ; function are moved to the top of the function they are inlined into.
 ;
-; RUN: llvm-as < %s | opt -inline | llvm-dis | %prcontext alloca 1 | grep Entry:
+; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | %prcontext alloca 1 | grep Entry:
 
 int %func(int %i) {
        %X = alloca int 
+       store int %i, int* %X
        ret int %i
 }