File: machine-copyprop.mir

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,436 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (22 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# RUN: llc -o - %s -mtriple=armv7s-- -run-pass=machine-cp | FileCheck %s
---
# Test that machine copy prop recognizes the implicit-def operands on a COPY
# as clobbering the register.
# CHECK-LABEL: name: func
# CHECK: $d2 = VMOVv2i32 2, 14, $noreg
# CHECK: $s5 = COPY $s0, implicit $q1, implicit-def $q1
# CHECK: VST1q32 $r0, 0, $q1, 14, $noreg
# The following two COPYs must not be removed
# CHECK: $s4 = COPY $s20, implicit-def $q1
# CHECK: $s5 = COPY $s0, implicit killed $d0, implicit $q1, implicit-def $q1
# CHECK: VST1q32 $r2, 0, $q1, 14, $noreg
name: func
body: |
  bb.0:
    $d2 = VMOVv2i32 2, 14, $noreg
    $s5 = COPY $s0, implicit $q1, implicit-def $q1
    VST1q32 $r0, 0, $q1, 14, $noreg
    $s4 = COPY $s20, implicit-def $q1
    $s5 = COPY $s0, implicit killed $d0, implicit $q1, implicit-def $q1
    VST1q32 $r2, 0, $q1, 14, $noreg
...