• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -instsimplify -S -o /dev/null -debug-pass=Details -enable-new-pm=0 2>&1 | FileCheck --check-prefix DETAILS %s
3; RUN: opt < %s -instsimplify -S -o - | FileCheck %s
4
5; Verify that InstSimplifyLegacyPass notifies the pass manager about changes
6; being made (when a call is removed CGSCC must be updated).
7;
8; DETAILS: Made Modification 'Remove redundant instructions' on Function 'main'
9
10define internal void @func_1(i64* nocapture readnone %0) #0 {
11; CHECK-LABEL: @func_1(
12; CHECK-NEXT:    unreachable
13;
14  unreachable
15}
16
17define i16 @main(i16 %0, i16** nocapture readnone %1) #1 {
18; CHECK-LABEL: @main(
19; CHECK-NEXT:  bb1:
20; CHECK-NEXT:    unreachable
21;
22bb1:
23  call void @func_1(i64* undef)
24  unreachable
25}
26
27attributes #0 = { noinline norecurse nounwind readnone }
28attributes #1 = { norecurse nounwind readnone }
29