[BACKEND][IR] Fixed up internal dtype size for booleans (1bit -> 8bit) (#600)

This commit is contained in:
Philippe Tillet
2022-07-23 20:08:03 -07:00
committed by GitHub
parent f28caddbf8
commit ab56d310dd

View File

@@ -27,7 +27,7 @@ unsigned type::get_primitive_size_in_bits() const {
case BF16TyID: return 16;
case FP32TyID: return 32;
case FP64TyID: return 64;
case IntegerTyID: return ((integer_type*)(this))->get_bitwidth();
case IntegerTyID: return std::max<int>(8, ((integer_type*)(this))->get_bitwidth());
case BlockTyID: return ((block_type*)(this))->get_bitwidth();
default: return 0;
}