aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-05-15 09:52:33 +0000
committerTom Stellard <tstellar@redhat.com>2017-05-15 09:52:33 +0000
commit049e7e07915033905afbe60bd66ed0634f842b16 (patch)
treefcf598422742eb0d704b20885206f027b62f9525 /llvm/lib/CodeGen/CodeGen.cpp
parent418a8e3442a477984651cc1e56b18f8a3d57c0df (diff)
downloadllvm-049e7e07915033905afbe60bd66ed0634f842b16.zip
llvm-049e7e07915033905afbe60bd66ed0634f842b16.tar.gz
llvm-049e7e07915033905afbe60bd66ed0634f842b16.tar.bz2
[RegisterBankInfo] Remove overly-agressive asserts
Summary: We were asserting in RegisterBankInfo if RBI.copyCost() returns UINT_MAX. This is OK for RegBankSelect::Mode::Fast since we only try one instruction mapping and can't recover from this, but for RegBankSelect::Mode::Greedy we will be considering multiple instruction mappings, so we can recover if we see a UNIT_MAX copy cost. The copy cost for one pair of register banks in the AMDGPU backend will be UNIT_MAX, so this patch will prevent AMDGPU tests from breaking. Reviewers: ab, qcolombet, t.p.northover, dsanders Reviewed By: qcolombet Subscribers: tpr, llvm-commits Differential Revision: https://reviews.llvm.org/D33144 llvm-svn: 303043
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions