You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
223 B

; RUN: opt -dce -S < %s | FileCheck %s
; RUN: opt -passes=dce -S < %s | FileCheck %s
; CHECK-LABEL: @test
define void @test() {
; CHECK-NOT: add
%add = add i32 1, 2
; CHECK-NOT: sub
%sub = sub i32 %add, 1
ret void
}