llvm-6502/test/Analysis/DSGraph/2004-02-13-memcpy.ll
Reid Spencer fd90dd5d55 For PR872:
Shrinkify LLVM's footprint by removing the analyze tool and moving its
functionality into the opt tool. THis eliminates one of the largest tools
from LLVM and doesn't make opt much bigger because it already included
most of the analysis passes.  To get the old analyze functionality pass
the -analyze option to opt. Note that the integeration here is dead
simple. The "main" of analyze was just copied to opt and invoked if the
-analyze option was given. There may be opportunities for further
integration such as removing the distinction between transform passes
and analysis passes.

To use the analysis functionality, if you previously did this:
  analyze $FNAME -domset -disable-verify
you would now do this:
  opt -analyze $FNAME -domset -disable-verify
Pretty simple.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29762 91177308-0d34-0410-b5e6-96231b3b80d8
2006-08-18 06:34:30 +00:00

26 lines
676 B
LLVM

; RUN: opt -analyze %s -datastructure-gc -dsgc-check-flags=Xn:SMR
; RUN: opt -analyze %s -datastructure-gc -dsgc-check-flags=X:SMR
declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)
declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint)
void %test() {
%X = alloca int
%Y = alloca int
%x = cast int* %X to sbyte*
%y = cast int* %Y to sbyte*
store int 4, int* %X
call void %llvm.memcpy.i32(sbyte* %x, sbyte* %y, uint 4, uint 4)
ret void
}
void %test2() {
%Xn = alloca int
%Yn = alloca int
%xn = cast int* %Xn to sbyte*
%yn = cast int* %Yn to sbyte*
store int 4, int* %Xn
call void %llvm.memmove.i32(sbyte* %xn, sbyte* %yn, uint 4, uint 4)
ret void
}