mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
a99283db0a
As discussed in D86843, -earlycse-debug-hash should be used in more regression tests to catch inconsistency between the hashing and the equivalence check. Differential Revision: https://reviews.llvm.org/D86863
56 lines
957 B
LLVM
56 lines
957 B
LLVM
; RUN: opt -inline -early-cse -earlycse-debug-hash < %s
|
|
; This test used to crash (PR35469).
|
|
|
|
define void @func1() {
|
|
%t = bitcast void ()* @func2 to void ()*
|
|
tail call void %t()
|
|
ret void
|
|
}
|
|
|
|
define void @func2() {
|
|
%t = bitcast void ()* @func3 to void ()*
|
|
tail call void %t()
|
|
ret void
|
|
}
|
|
|
|
define void @func3() {
|
|
%t = bitcast void ()* @func4 to void ()*
|
|
tail call void %t()
|
|
ret void
|
|
}
|
|
|
|
define void @func4() {
|
|
br i1 undef, label %left, label %right
|
|
|
|
left:
|
|
%t = bitcast void ()* @func5 to void ()*
|
|
tail call void %t()
|
|
ret void
|
|
|
|
right:
|
|
ret void
|
|
}
|
|
|
|
define void @func5() {
|
|
%t = bitcast void ()* @func6 to void ()*
|
|
tail call void %t()
|
|
ret void
|
|
}
|
|
|
|
define void @func6() {
|
|
%t = bitcast void ()* @func2 to void ()*
|
|
tail call void %t()
|
|
ret void
|
|
}
|
|
|
|
define void @func7() {
|
|
%t = bitcast void ()* @func3 to void ()*
|
|
tail call void @func8(void()* %t)
|
|
ret void
|
|
}
|
|
|
|
define void @func8(void()* %f) {
|
|
tail call void %f()
|
|
ret void
|
|
}
|