mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
fix PR9013, an infinite loop in instcombine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -353,3 +353,20 @@ entry:
|
||||
ret %struct.basic_ios* %0
|
||||
}
|
||||
|
||||
; PR9013
|
||||
define void @test18() nounwind ssp {
|
||||
entry:
|
||||
br label %for.cond
|
||||
|
||||
for.cond: ; preds = %for.inc, %entry
|
||||
%l_197.0 = phi i32 [ 0, %entry ], [ %sub.i, %for.inc ]
|
||||
br label %for.inc
|
||||
|
||||
for.inc: ; preds = %for.cond
|
||||
%conv = and i32 %l_197.0, 255
|
||||
%sub.i = add nsw i32 %conv, -1
|
||||
br label %for.cond
|
||||
|
||||
return: ; No predecessors!
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user