29 lines · plain
1# RUN: llc -o - %s -mtriple=i686-- -run-pass branch-folder | FileCheck %s2# Test that tail merging drops undef flags that aren't present on all3# instructions to be merged.4--- |5 define void @func() { ret void }6...7---8# CHECK-LABEL: name: func9# CHECK: bb.1:10# CHECK: $eax = MOV32ri 211# CHECK-NOT: RET12# CHECK: bb.2:13# CHECK-NOT: RET 0, undef $eax14# CHECK: RET 0, $eax15name: func16tracksRegLiveness: true17body: |18 bb.0:19 JCC_1 %bb.1, 4, implicit undef $eflags20 JMP_1 %bb.221 22 bb.1:23 $eax = MOV32ri 224 RET 0, $eax25 26 bb.2:27 RET 0, undef $eax28...29