bolt/deps/llvm-18.1.8/llvm/test/Transforms/MergeFunc/vector-GEP-crash.ll

13 lines
326 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: opt -passes=mergefunc -disable-output < %s
; This used to cause a crash when compairing the GEPs
define void @foo(<2 x ptr>) {
%tmp = getelementptr i64, <2 x ptr> %0, <2 x i64> <i64 0, i64 0>
ret void
}
define void @bar(<2 x ptr>) {
%tmp = getelementptr i64, <2 x ptr> %0, <2 x i64> <i64 0, i64 0>
ret void
}