diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2014-04-04 01:58:57 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2014-04-04 01:58:57 +0000 |
| commit | 7ee4e79dec04f813c77e6ceac02c9d0568b08399 (patch) | |
| tree | 8642ddd43410bf4a4f68aff983cb20d988696a99 /llvm/test | |
| parent | 9307fba85dc945a9cd59e530cc940836b7e20eb9 (diff) | |
| download | bcm5719-llvm-7ee4e79dec04f813c77e6ceac02c9d0568b08399.tar.gz bcm5719-llvm-7ee4e79dec04f813c77e6ceac02c9d0568b08399.zip | |
[RegAllocGreedy][Last Chance Recoloring] Emit diagnostics when last chance
recoloring cut-offs are hit.
This is related to PR18747.
Patch by MAYUR PANDEY <mayur.p@samsung.com>
llvm-svn: 205599
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/ragreedy-last-chance-recoloring.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/ragreedy-last-chance-recoloring.ll b/llvm/test/CodeGen/X86/ragreedy-last-chance-recoloring.ll index f3669fbdbdd..830a10d36f9 100644 --- a/llvm/test/CodeGen/X86/ragreedy-last-chance-recoloring.ll +++ b/llvm/test/CodeGen/X86/ragreedy-last-chance-recoloring.ll @@ -2,6 +2,12 @@ ; Without the last chance recoloring, this test fails with: ; "ran out of registers". +; RUN: not llc -regalloc=greedy -relocation-model=pic -lcr-max-depth=0 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEPTH +; Test whether failure due to cutoff for depth is reported + +; RUN: not llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-INTERF +; Test whether failure due to cutoff for interference is reported + target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128" target triple = "i386-apple-macosx" @@ -12,6 +18,8 @@ target triple = "i386-apple-macosx" ; Function Attrs: nounwind ssp ; CHECK-NOT: ran out of registers during register allocation +; CHECK-INTERF: error: register allocation failed: maximum interference for recoloring reached +; CHECK-DEPTH: error: register allocation failed: maximum depth for recoloring reached define void @fp_dh_f870bf31fd8ffe068450366e3f05389a(i8* %arg) #0 { bb: indirectbr i8* undef, [label %bb85, label %bb206] |

