mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
Fix test that was failing because we were optimizing the program better than expected :)
llvm-svn: 10404
This commit is contained in:
parent
58a948d2da
commit
0028148c0b
@ -4,14 +4,14 @@
|
||||
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div
|
||||
|
||||
%X = global int 0
|
||||
declare void %foo()
|
||||
declare void %foo(int)
|
||||
|
||||
int %test(bool %c) {
|
||||
%A = load int *%X
|
||||
br label %Loop
|
||||
Loop:
|
||||
call void %foo()
|
||||
%B = div int 4, %A ;; Should have hoisted this div!
|
||||
call void %foo(int %B)
|
||||
br bool %c, label %Loop, label %Out
|
||||
|
||||
Out:
|
||||
|
Loading…
x
Reference in New Issue
Block a user