1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

New testcase for scalar promotion

llvm-svn: 5611
This commit is contained in:
Chris Lattner 2003-02-24 03:52:04 +00:00
parent 2e4c1c8640
commit a124de5ec6

View File

@ -19,3 +19,18 @@ Loop:
Out:
ret void
}
void %testhard(int %i) {
br label %Loop
Loop:
%X1 = getelementptr int* %X, long 0
%A = load int* %X1 ; Aliases X, needs to be rewritten
%V = add int %A, 1
%X2 = getelementptr int* %X, long 0
store int %V, int* %X2
br bool false, label %Loop, label %Exit
Exit:
ret void
}