[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / GlobalISel / lifetime-marker-no-dce.mir
blob16f2d70cd604bd36f31ed15e540eec8f6eb1b199
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - | FileCheck %s
3 # Check that we don't DCE the lifetime markers even though they don't have any users.
4 ---
5 name:            test_lifetime_no_dce
6 alignment:       4
7 tracksRegLiveness: true
8 frameInfo:
9   maxAlignment:    4
10 stack:
11   - { id: 0, size: 4, alignment: 4 }
12 machineFunctionInfo: {}
13 body:             |
14   bb.1:
15     ;%0:_(p0) = G_FRAME_INDEX %stack.0.slot
16     ; CHECK-LABEL: name: test_lifetime_no_dce
17     ; CHECK: LIFETIME_START %stack.0
18     ; CHECK: LIFETIME_END %stack.0
19     ; CHECK: RET_ReallyLR
20     LIFETIME_START %stack.0
21     LIFETIME_END %stack.0
22     RET_ReallyLR
24 ...