diff options
author | Tom Stellard <tstellar@redhat.com> | 2017-05-15 09:52:33 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2017-05-15 09:52:33 +0000 |
commit | 049e7e07915033905afbe60bd66ed0634f842b16 (patch) | |
tree | fcf598422742eb0d704b20885206f027b62f9525 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 418a8e3442a477984651cc1e56b18f8a3d57c0df (diff) | |
download | llvm-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