brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 232a5e3 Raw
40 lines · plain
1# RUN: llc -mtriple=x86_64-- %s -o - -run-pass=processimpdefs -run-pass=unreachable-mbb-elimination | FileCheck %s2# RUN: llc -mtriple=x86_64-- %s -o - -passes=process-imp-defs,unreachable-mbb-elimination | FileCheck %s3---4name:            f5tracksRegLiveness: true6registers:7  - { id: 0, class: gr32, preferred-register: '' }8  - { id: 1, class: gr32, preferred-register: '' }9  - { id: 2, class: gr32, preferred-register: '' }10body:             |11  bb.0:12    %0 = IMPLICIT_DEF13    JMP_1 %bb.114 15  bb.1:16    %1 = PHI %0, %bb.0, %2, %bb.217    %2 = ADD32ri8 killed %1, 1, implicit-def $eflags18    JMP_1 %bb.319 20  bb.2:21    JMP_1 %bb.122 23  bb.3:24...25 26# bb2 above is dead and should be removed and the PHI should be replaced with a27# COPY from an undef value since the bb0 value in the PHI is undef.28 29# CHECK:  bb.0:30# CHECK:    successors: %bb.131# CHECK:    JMP_1 %bb.132 33# CHECK:  bb.1:34# CHECK:    successors: %bb.235# CHECK:    [[TMP1:%[0-9]+]]:gr32 = COPY undef %{{[0-9]+}}36# CHECK:    %{{[0-9]+}}:gr32 = ADD32ri8 killed [[TMP1]], 137# CHECK:    JMP_1 %bb.238 39# CHECK:  bb.2:40