llvm-for-llvmta/test/CodeGen/AArch64/GlobalISel/postlegalizer-combiner-stor...

26 lines
666 B
YAML

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple aarch64 -run-pass=aarch64-postlegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
...
---
name: delete_store_undef
legalized: true
tracksRegLiveness: true
body: |
bb.1.entry:
liveins: $x0
; A store of an implicit def can safely be deleted before or after
; legalization.
; CHECK-LABEL: name: delete_store_undef
; CHECK: liveins: $x0
; CHECK-NOT: G_STORE
; CHECK: RET_ReallyLR
%0:_(p0) = COPY $x0
%1:_(s32) = G_IMPLICIT_DEF
G_STORE %1(s32), %0(p0) :: (store 4)
RET_ReallyLR
...