summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-09-16 14:44:54 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-09-16 14:44:54 +0000
commit74db8faa71f352bf94bbb2ae4ed4e4acfc6183ca (patch)
tree26ab94a3c7e89ec6306969052264b0d6b52b7047 /llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
parent7306313e6d6db1cb494bd82d2cf5537edd450c35 (diff)
downloadbcm5719-llvm-74db8faa71f352bf94bbb2ae4ed4e4acfc6183ca.tar.gz
bcm5719-llvm-74db8faa71f352bf94bbb2ae4ed4e4acfc6183ca.zip
[AArch64][GlobalISel] Test default regbank mapping for G_ICMP.
Also relax a RegisterBankInfo verifier check that's incompatible with 1-bit mappings. llvm-svn: 281735
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
index 20015ae82fd..91681fb7a40 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
@@ -390,7 +390,7 @@ void RegisterBankInfo::PartialMapping::dump() const {
bool RegisterBankInfo::PartialMapping::verify() const {
assert(RegBank && "Register bank not set");
assert(Length && "Empty mapping");
- assert((StartIdx < getHighBitIdx()) && "Overflow, switch to APInt?");
+ assert((StartIdx <= getHighBitIdx()) && "Overflow, switch to APInt?");
// Check if the minimum width fits into RegBank.
assert(RegBank->getSize() >= Length && "Register bank too small for Mask");
return true;
OpenPOWER on IntegriCloud