1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=aarch64-postlegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
6 name: delete_store_undef
8 tracksRegLiveness: true
13 ; A store of an implicit def can safely be deleted before or after
16 ; CHECK-LABEL: name: delete_store_undef
19 ; CHECK-NEXT: RET_ReallyLR
21 %1:_(s32) = G_IMPLICIT_DEF
22 G_STORE %1(s32), %0(p0) :: (store (s32))
27 name: delete_add_undef
29 tracksRegLiveness: true
34 ; CHECK-LABEL: name: delete_add_undef
37 ; CHECK-NEXT: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF
38 ; CHECK-NEXT: $x0 = COPY [[DEF]](s64)
39 ; CHECK-NEXT: RET_ReallyLR
41 %1:_(s64) = G_IMPLICIT_DEF
42 %add:_(s64) = G_ADD %0(s64), %1(s64)