brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 18ac093 Raw
39 lines · plain
1# REQUIRES: asserts2# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=branch-folder -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=LEGACY-CHECK,CHECK3# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -passes="require<profile-summary>,function(machine-function(branch-folder<enable-tail-merge>))" -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=NPM-CHECK,CHECK4 5# BranchFolding breaks this function due to phis6 7# LEGACY-CHECK: MachineFunctionProperties required by Control Flow Optimizer pass are not met by function func.8# NPM-CHECK: MachineFunctionProperties required by BranchFolderPass pass are not met by function func.9# CHECK-NEXT: Required properties: NoPHIs10# CHECK-NEXT: Current properties: IsSSA, TracksLiveness{{$}}11---12name:            func13tracksRegLiveness: true14body:             |15  bb.0:16    liveins: $vgpr0, $sgpr4_sgpr5, $sgpr6_sgpr7, $sgpr8_sgpr9, $sgpr10_sgpr11, $sgpr14, $sgpr15, $sgpr1617 18    %0:sreg_32_xm0_xexec = IMPLICIT_DEF19    %1:sreg_64 = IMPLICIT_DEF20 21  bb.1:22    S_CBRANCH_EXECZ %bb.3, implicit $exec23    S_BRANCH %bb.224 25  bb.2:26    %3:sreg_64 = IMPLICIT_DEF27    S_BRANCH %bb.428 29  bb.3:30    %4:sreg_64 = PHI undef %1, %bb.1, undef %3, %bb.431    S_CBRANCH_EXECNZ %bb.5, implicit $exec32 33  bb.4:34    S_BRANCH %bb.335 36  bb.5:37 38...39