New testcase

llvm-svn: 5657
This commit is contained in:
Chris Lattner 2003-02-27 21:59:31 +00:00
parent 4f3b1d1808
commit cabe8c0dac
1 changed files with 13 additions and 0 deletions

View File

@ -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
}