diff options
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/use-list-order.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/use-list-order.ll b/llvm/test/Bitcode/use-list-order.ll index 3d3a06ca9de..293650f4082 100644 --- a/llvm/test/Bitcode/use-list-order.ll +++ b/llvm/test/Bitcode/use-list-order.ll @@ -118,3 +118,16 @@ entry: %local = load i4* @globalAndFunction ret i4 %local } + +; Check for when an instruction is its own user. +define void @selfUser() { +entry: + ret void + +loop1: + br label %loop2 + +loop2: + %var = phi i32 [ %var, %loop1 ], [ %var, %loop2 ] + br label %loop1 +} |