llvm.org GIT mirror llvm / master test / Transforms / DCE / int_sideeffect.ll
master

Tree @master (Download .tar.gz)

int_sideeffect.ll @masterraw · history · blame

; RUN: opt -S < %s -instcombine | FileCheck %s

declare void @llvm.sideeffect()

; Don't DCE llvm.sideeffect calls.

; CHECK-LABEL: dce
; CHECK: call void @llvm.sideeffect()
define void @dce() {
    call void @llvm.sideeffect()
    ret void
}