Failed

LLVM.CodeGen/AMDGPU.phi-elimination-end-cf.mir (from LLVM)

Failing for the past 1 build (Since Failed#14666 )
Took 0.21 sec.

Stacktrace

Script:
--
: 'RUN: at line 1';   /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/bin/llc -mtriple amdgcn -run-pass livevars -run-pass phi-node-elimination -o - /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir | /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir
--
Exit Code: 2

Command Output (stderr):
--

# After Eliminate PHI nodes for register allocation
# Machine code for function phi-cf-test: NoPHIs, TracksLiveness

bb.0:
  successors: %bb.2(0x40000000), %bb.1(0x40000000); %bb.2(50.00%), %bb.1(50.00%)
  liveins: $vgpr0
  %0:vgpr_32(s32) = COPY killed $vgpr0
  %1:sreg_64 = V_CMP_EQ_U32_e64 0, killed %0:vgpr_32(s32), implicit $exec
  %2:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
  %3:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
  %16:sreg_64 = COPY killed %3:sreg_64, implicit $exec
  %17:vgpr_32 = COPY %2:vgpr_32
  %18:vgpr_32 = COPY killed %2:vgpr_32
  S_BRANCH %bb.2

bb.1:
; predecessors: %bb.0, %bb.2
  successors: %bb.2(0x80000000); %bb.2(100.00%)

  %4:sreg_64 = COPY killed %16:sreg_64
  SI_END_CF killed %4:sreg_64, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
  %6:vgpr_32 = COPY killed %17:vgpr_32
  %8:vgpr_32, dead %9:sreg_64 = nsw V_ADD_I32_e64 1, killed %6:vgpr_32, 0, implicit $exec
  %18:vgpr_32 = COPY killed %8:vgpr_32

bb.2:
; predecessors: %bb.0, %bb.1, %bb.2
  successors: %bb.2(0x40000000), %bb.1(0x40000000); %bb.2(50.00%), %bb.1(50.00%)

  %11:sreg_32_xm0 = S_MOV_B32 61440
  %12:sreg_32_xm0 = S_MOV_B32 -1
  %13:sreg_128 = REG_SEQUENCE undef %14:sreg_32_xm0, %subreg.sub0, undef %15:sreg_32_xm0, %subreg.sub1, killed %12:sreg_32_xm0, %subreg.sub2, killed %11:sreg_32_xm0, %subreg.sub3
  %10:vgpr_32 = COPY killed %18:vgpr_32
  BUFFER_STORE_DWORD_OFFSET %10:vgpr_32, killed %13:sreg_128, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile store 4 into `i32 addrspace(1)* undef`, addrspace 1)
  %7:vgpr_32 = COPY killed %10:vgpr_32
  %5:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
  %16:sreg_64 = COPY killed %5:sreg_64, implicit $exec
  %17:vgpr_32 = COPY %7:vgpr_32
  %18:vgpr_32 = COPY killed %7:vgpr_32
  S_BRANCH %bb.2

# End machine code for function phi-cf-test.

*** Bad machine code: MBB exits via unconditional branch but doesn't have exactly one CFG successor! ***
- function:    phi-cf-test
- basic block: %bb.0  (0x7fb017853e68)

*** Bad machine code: Non-terminator instruction after the first terminator ***
- function:    phi-cf-test
- basic block: %bb.0  (0x7fb017853e68)
- instruction: %16:sreg_64 = COPY killed %3:sreg_64, implicit $exec
First terminator was:	%3:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec

*** Bad machine code: Non-terminator instruction after the first terminator ***
- function:    phi-cf-test
- basic block: %bb.0  (0x7fb017853e68)
- instruction: %17:vgpr_32 = COPY %2:vgpr_32
First terminator was:	%3:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec

*** Bad machine code: Non-terminator instruction after the first terminator ***
- function:    phi-cf-test
- basic block: %bb.0  (0x7fb017853e68)
- instruction: %18:vgpr_32 = COPY killed %2:vgpr_32
First terminator was:	%3:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec

*** Bad machine code: MBB exits via unconditional branch but doesn't have exactly one CFG successor! ***
- function:    phi-cf-test
- basic block: %bb.2  (0x7fb017853fe8)

*** Bad machine code: Non-terminator instruction after the first terminator ***
- function:    phi-cf-test
- basic block: %bb.2  (0x7fb017853fe8)
- instruction: %16:sreg_64 = COPY killed %5:sreg_64, implicit $exec
First terminator was:	%5:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec

*** Bad machine code: Non-terminator instruction after the first terminator ***
- function:    phi-cf-test
- basic block: %bb.2  (0x7fb017853fe8)
- instruction: %17:vgpr_32 = COPY %7:vgpr_32
First terminator was:	%5:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec

*** Bad machine code: Non-terminator instruction after the first terminator ***
- function:    phi-cf-test
- basic block: %bb.2  (0x7fb017853fe8)
- instruction: %18:vgpr_32 = COPY killed %7:vgpr_32
First terminator was:	%5:sreg_64 = SI_IF %1:sreg_64, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
LLVM ERROR: Found 8 machine code errors.
FileCheck error: '-' is empty.
FileCheck command line:  /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm/test/CodeGen/AMDGPU/phi-elimination-end-cf.mir

--