64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
13 lines
243 B
LLVM
13 lines
243 B
LLVM
; 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
|
|
}
|