File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
include/llvm/CodeGen/GlobalISel
utils/TableGen/Common/GlobalISel Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -722,8 +722,9 @@ class GIMatchTableExecutor {
722
722
// - Fast common case handling (1 byte values).
723
723
LLVM_ATTRIBUTE_ALWAYS_INLINE static uint64_t
724
724
fastDecodeULEB128 (const uint8_t *MatchTable, uint64_t &CurrentIdx) {
725
- uint64_t Value = MatchTable[CurrentIdx] & 0x7f ;
726
- if (LLVM_UNLIKELY (MatchTable[CurrentIdx++] >= 128 )) {
725
+ uint64_t Value = MatchTable[CurrentIdx++];
726
+ if (LLVM_UNLIKELY (Value >= 128 )) {
727
+ Value &= 0x7f ;
727
728
unsigned Shift = 7 ;
728
729
do {
729
730
uint64_t Slice = MatchTable[CurrentIdx] & 0x7f ;
Original file line number Diff line number Diff line change @@ -1565,7 +1565,7 @@ bool MemoryAddressSpacePredicateMatcher::isIdentical(
1565
1565
1566
1566
void MemoryAddressSpacePredicateMatcher::emitPredicateOpcodes (
1567
1567
MatchTable &Table, RuleMatcher &Rule) const {
1568
- assert (AddrSpaces.size () < 255 );
1568
+ assert (AddrSpaces.size () < 256 );
1569
1569
Table << MatchTable::Opcode (" GIM_CheckMemoryAddressSpace" )
1570
1570
<< MatchTable::Comment (" MI" ) << MatchTable::ULEB128Value (InsnVarID)
1571
1571
<< MatchTable::Comment (" MMO" )
You can’t perform that action at this time.
0 commit comments