• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -dce -S < %s | FileCheck %s
2; RUN: opt -passes=dce -S < %s | FileCheck %s
3
4; CHECK-LABEL: @test
5define void @test() {
6; CHECK-NOT: add
7  %add = add i32 1, 2
8; CHECK-NOT: sub
9  %sub = sub i32 %add, 1
10  ret void
11}
12