1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Transforms/JumpThreading/PR37745.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

20 lines
348 B
LLVM

; RUN: opt -jump-threading -verify-each -S -mtriple=x86_64-- -o - %s
define void @foo() {
entry:
br i1 false, label %A, label %B
A:
%x = phi i32 [ undef, %entry ], [ %z, %B ]
br label %B
B:
%y = phi i32 [ undef, %entry ], [ %x, %A ]
%z = add i32 %y, 1
%cmp = icmp ne i32 %z, 0
br i1 %cmp, label %exit, label %A
exit:
ret void
}