2003-02-28 05:59:31 +08:00
|
|
|
; LICM is adding stores before phi nodes. bad.
|
|
|
|
|
2003-09-16 23:29:54 +08:00
|
|
|
; RUN: llvm-as < %s | opt -licm
|
2003-02-28 05:59:31 +08:00
|
|
|
|
|
|
|
bool %test(bool %c) {
|
|
|
|
br bool %c, label %Loop, label %Out
|
|
|
|
Loop:
|
|
|
|
store int 0, int* null
|
|
|
|
br bool %c, label %Loop, label %Out
|
|
|
|
Out:
|
|
|
|
%X = phi bool [%c, %0], [true, %Loop]
|
|
|
|
ret bool %X
|
|
|
|
}
|