forked from OSchip/llvm-project
parent
4f3b1d1808
commit
cabe8c0dac
|
@ -0,0 +1,13 @@
|
|||
; LICM is adding stores before phi nodes. bad.
|
||||
|
||||
; RUN: 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
|
||||
}
|
Loading…
Reference in New Issue