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:
parent
2e4c1c8640
commit
a124de5ec6
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user