@@ -1632,22 +1632,19 @@ int32_t getScaleSel(int32_t blockSize, unsigned bitWidth,
16321632 assert (llvm::is_contained ({0 , 1 }, firstScaleLane));
16331633 int bit_2 = firstScaleLane << 2 ;
16341634 return bit_2 | bit_1 | bit_0;
1635- } else {
1636- int bit_0 = is_block_16;
1637- // firstScaleByte is guaranteed to be defined by two bits.
1638- assert (llvm::is_contained ({0 , 1 , 2 , 3 }, firstScaleByte));
1639- int bit_2_and_1 = firstScaleByte << 1 ;
1640- assert (llvm::is_contained ({0 , 1 }, firstScaleLane));
1641- int bit_3 = firstScaleLane << 3 ;
1642- int bits = bit_3 | bit_2_and_1 | bit_0;
1643- // These are invalid cases.
1644- assert (!llvm::is_contained (
1645- {0b0011 , 0b0101 , 0b0111 , 0b1000 , 0b1001 , 0b1011 , 0b1111 }, bits));
1646- return bits;
16471635 }
16481636
1649- llvm_unreachable (" invalid combination of firstScaleLane, firstScaleByte, "
1650- " blockSize and type." );
1637+ int bit_0 = is_block_16;
1638+ // firstScaleByte is guaranteed to be defined by two bits.
1639+ assert (llvm::is_contained ({0 , 1 , 2 , 3 }, firstScaleByte));
1640+ int bit_2_and_1 = firstScaleByte << 1 ;
1641+ assert (llvm::is_contained ({0 , 1 }, firstScaleLane));
1642+ int bit_3 = firstScaleLane << 3 ;
1643+ int bits = bit_3 | bit_2_and_1 | bit_0;
1644+ // These are invalid cases.
1645+ assert (!llvm::is_contained (
1646+ {0b0011 , 0b0101 , 0b0111 , 0b1000 , 0b1001 , 0b1011 , 0b1111 }, bits));
1647+ return bits;
16511648}
16521649
16531650LogicalResult ScaledExtPacked816OpLowering::matchAndRewrite (
0 commit comments