blob: 2ca45cb895b37de43c3aee145fcb3c8966618ee7 [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/
; RUN: opt -gvn-sink -S < %s | FileCheck %s
; This would assert/crash because the calls have different numbers of operands:
%vec = type opaque
%map = type { i32 }
define void @PR42346() {
; CHECK-LABEL: @PR42346(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[CALL1:%.*]] = call %vec* @bar(%map* undef, %vec* (%map*)* undef)
; CHECK-NEXT: br label [[EXIT:%.*]]
; CHECK: if:
; CHECK-NEXT: [[CALL2:%.*]] = call %vec* @baz(%map* undef)
; CHECK-NEXT: br label [[EXIT]]
; CHECK: exit:
; CHECK-NEXT: ret void
%call1 = call %vec* @bar(%map* undef, %vec* (%map*)* undef)
br label %exit
%call2 = call %vec* @baz(%map* undef)
br label %exit
ret void
declare %vec* @bar(%map*, %vec* (%map*)*)
declare %vec* @baz(%map*)