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