blob: d0ec438dc7eb0d8fcd9d94c9335dbcd73f6b4cde [file] [log] [blame]
; LICM is adding stores before phi nodes. bad.
; RUN: llvm-as < %s | opt -licm
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
}