Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/DeadStoreElimination/dependent-capture.ll
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py | ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py | ||||
; RUN: opt -passes=dse -S < %s | FileCheck %s | ; RUN: opt -passes=dse -S < %s | FileCheck %s | ||||
define void @f() { | define void @f() { | ||||
; CHECK-LABEL: @f( | ; CHECK-LABEL: @f( | ||||
; CHECK-NEXT: [[TMP1:%.*]] = call noalias ptr @_Znwm() | ; CHECK-NEXT: [[TMP1:%.*]] = call noalias ptr @_Znwm() | ||||
; CHECK-NEXT: [[TMP4:%.*]] = call noalias ptr @_Znwm() | ; CHECK-NEXT: [[TMP4:%.*]] = call noalias ptr @_Znwm() | ||||
; CHECK-NEXT: store i8 0, ptr [[TMP4]], align 1 | |||||
; CHECK-NEXT: ret void | ; CHECK-NEXT: ret void | ||||
; | ; | ||||
%tmp1 = call noalias ptr @_Znwm() | %tmp1 = call noalias ptr @_Znwm() | ||||
%tmp4 = call noalias ptr @_Znwm() | %tmp4 = call noalias ptr @_Znwm() | ||||
store ptr %tmp4, ptr %tmp1 | store ptr %tmp4, ptr %tmp1 | ||||
store i8 0, ptr %tmp4, align 1 | store i8 0, ptr %tmp4, align 1 | ||||
ret void | ret void | ||||
} | } | ||||
declare ptr @_Znwm() | declare ptr @_Znwm() |