1 ; RUN: opt -S -bdce < %s | FileCheck %s 2 3 target triple = "x86_64-unknown-linux-gnu" 4 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) 9 ret void 10 11 ; CHECK: %not_demanded_but_not_dead = load volatile i16, i16* %p 12 ; CHECK-NEXT: ret void 13 } 14 15 declare void @no_side_effects_so_dead(i16) #0 16 17 attributes #0 = { nounwind readnone } 18 19