1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Transforms/BDCE/dead-void-ro.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

19 lines
457 B
LLVM

; RUN: opt -S -bdce < %s | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
define void @PR34211(i16* %p) {
; CHECK-LABEL: @PR34211
%not_demanded_but_not_dead = load volatile i16, i16* %p
call void @no_side_effects_so_dead(i16 %not_demanded_but_not_dead)
ret void
; CHECK: %not_demanded_but_not_dead = load volatile i16, i16* %p
; CHECK-NEXT: ret void
}
declare void @no_side_effects_so_dead(i16) #0
attributes #0 = { nounwind readnone }