File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1636,7 +1636,7 @@ static const char RegAllocOptNotSupportedMessage[] =
1636
1636
1637
1637
bool GCNPassConfig::addRegAssignAndRewriteFast () {
1638
1638
if (!usingDefaultRegAlloc ())
1639
- report_fatal_error (RegAllocOptNotSupportedMessage);
1639
+ reportFatalUsageError (RegAllocOptNotSupportedMessage);
1640
1640
1641
1641
addPass (&GCNPreRALongBranchRegID);
1642
1642
@@ -1662,7 +1662,7 @@ bool GCNPassConfig::addRegAssignAndRewriteFast() {
1662
1662
1663
1663
bool GCNPassConfig::addRegAssignAndRewriteOptimized () {
1664
1664
if (!usingDefaultRegAlloc ())
1665
- report_fatal_error (RegAllocOptNotSupportedMessage);
1665
+ reportFatalUsageError (RegAllocOptNotSupportedMessage);
1666
1666
1667
1667
addPass (&GCNPreRALongBranchRegID);
1668
1668
Original file line number Diff line number Diff line change 9
9
; RUN: llc -verify-machineinstrs=0 -sgpr-regalloc=basic -mtriple=amdgcn-amd-amdhsa -debug-pass=Structure -o /dev/null %s 2>&1 | FileCheck -check-prefix=BASIC-DEFAULT %s
10
10
; RUN: llc -verify-machineinstrs=0 -sgpr-regalloc=basic -wwm-regalloc=basic -vgpr-regalloc=basic -mtriple=amdgcn-amd-amdhsa -debug-pass=Structure -o /dev/null %s 2>&1 | FileCheck -check-prefix=BASIC-BASIC %s
11
11
12
- ; RUN: not --crash llc -verify-machineinstrs=0 -regalloc=basic -mtriple=amdgcn-amd-amdhsa -debug-pass=Structure -o /dev/null %s 2>&1 | FileCheck -check-prefix=REGALLOC %s
13
- ; RUN: not --crash llc -verify-machineinstrs=0 -regalloc=fast -O0 -mtriple=amdgcn-amd-amdhsa -debug-pass=Structure -o /dev/null %s 2>&1 | FileCheck -check-prefix=REGALLOC %s
12
+ ; RUN: not llc -verify-machineinstrs=0 -regalloc=basic -mtriple=amdgcn-amd-amdhsa -debug-pass=Structure -o /dev/null %s 2>&1 | FileCheck -check-prefix=REGALLOC %s
13
+ ; RUN: not llc -verify-machineinstrs=0 -regalloc=fast -O0 -mtriple=amdgcn-amd-amdhsa -debug-pass=Structure -o /dev/null %s 2>&1 | FileCheck -check-prefix=REGALLOC %s
14
14
15
15
16
16
; REGALLOC: -regalloc not supported with amdgcn. Use -sgpr-regalloc, -wwm-regalloc, and -vgpr-regalloc
You can’t perform that action at this time.
0 commit comments