1; RUN: llc -march=amdgcn -verify-machineinstrs %s -o - | FileCheck %s 2 3; CHECK-LABEL: foo 4; CHECK-NOT: BUFFER_LOAD_DWORDX2_OFFSET 5; After dead code elimination, that buffer load should be eliminated finally 6; after dead lane detection. 7define amdgpu_kernel void @foo() { 8entry: 9 switch i8 undef, label %foo.exit [ 10 i8 4, label %sw.bb4 11 i8 10, label %sw.bb10 12 ] 13 14sw.bb4: 15 %x = load i64, i64 addrspace(1)* undef, align 8 16 %c = sitofp i64 %x to float 17 %v = insertelement <2 x float> <float undef, float 0.000000e+00>, float %c, i32 0 18 br label %foo.exit 19 20sw.bb10: 21 unreachable 22 23foo.exit: 24 %agg = phi <2 x float> [ %v, %sw.bb4 ], [ zeroinitializer, %entry ] 25 %s = extractelement <2 x float> %agg, i32 1 26 store float %s, float addrspace(1)* undef, align 4 27 ret void 28} 29