mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Make getUniqueExitBlocks's precondition assert more precise, to
avoid spurious failures. This fixes PR5758. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
; RUN: opt < %s -indvars -S -disable-output
|
||||
; PR5758
|
||||
|
||||
define zeroext i1 @foo() nounwind {
|
||||
entry:
|
||||
indirectbr i8* undef, [label %"202", label %"133"]
|
||||
|
||||
"132": ; preds = %"133"
|
||||
%0 = add i32 %1, 1 ; <i32> [#uses=1]
|
||||
br label %"133"
|
||||
|
||||
"133": ; preds = %"132", %entry
|
||||
%1 = phi i32 [ %0, %"132" ], [ 0, %entry ] ; <i32> [#uses=2]
|
||||
%2 = icmp eq i32 %1, 4 ; <i1> [#uses=1]
|
||||
br i1 %2, label %"134", label %"132"
|
||||
|
||||
"134": ; preds = %"133"
|
||||
ret i1 true
|
||||
|
||||
"202": ; preds = %entry
|
||||
ret i1 false
|
||||
}
|
||||
Reference in New Issue
Block a user