1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -gvn-sink -S < %s | FileCheck %s
4 ; This would assert/crash because the calls have different numbers of operands:
5 ; https://bugs.llvm.org/show_bug.cgi?id=42346
10 define void @PR42346() {
11 ; CHECK-LABEL: @PR42346(
13 ; CHECK-NEXT: [[CALL1:%.*]] = call %vec* @bar(%map* undef, %vec* (%map*)* undef)
14 ; CHECK-NEXT: br label [[EXIT:%.*]]
16 ; CHECK-NEXT: [[CALL2:%.*]] = call %vec* @baz(%map* undef)
17 ; CHECK-NEXT: br label [[EXIT]]
19 ; CHECK-NEXT: ret void
22 %call1 = call %vec* @bar(%map* undef, %vec* (%map*)* undef)
26 %call2 = call %vec* @baz(%map* undef)
33 declare %vec* @bar(%map*, %vec* (%map*)*)
34 declare %vec* @baz(%map*)