reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
; 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
}