| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py |
| ; RUN: opt -gvn-sink -S < %s | FileCheck %s |
| ; This would assert/crash because the calls have different numbers of operands: |
| ; https://bugs.llvm.org/show_bug.cgi?id=42346 |
| ; CHECK-NEXT: [[CALL1:%.*]] = call %vec* @bar(%map* undef, %vec* (%map*)* undef) |
| ; CHECK-NEXT: br label [[EXIT:%.*]] |
| ; CHECK-NEXT: [[CALL2:%.*]] = call %vec* @baz(%map* undef) |
| ; CHECK-NEXT: br label [[EXIT]] |
| %call1 = call %vec* @bar(%map* undef, %vec* (%map*)* undef) |
| %call2 = call %vec* @baz(%map* undef) |
| declare %vec* @bar(%map*, %vec* (%map*)*) |
| declare %vec* @baz(%map*) |