File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/CodeGen/GlobalISel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3625,8 +3625,8 @@ LegalizerHelper::LegalizeResult LegalizerHelper::lowerLoad(GAnyLoad &LoadMI) {
3625
3625
LLT MemTy = MMO.getMemoryType ();
3626
3626
MachineFunction &MF = MIRBuilder.getMF ();
3627
3627
3628
- TypeSize MemSizeInBits = MemTy.getSizeInBits ();
3629
- TypeSize MemStoreSizeInBits = MemTy.getSizeInBytes (). multiplyCoefficientBy ( 8 );
3628
+ unsigned MemSizeInBits = MemTy.getSizeInBits ();
3629
+ unsigned MemStoreSizeInBits = 8 * MemTy.getSizeInBytes ();
3630
3630
3631
3631
if (MemSizeInBits != MemStoreSizeInBits) {
3632
3632
if (MemTy.isVector ())
@@ -3690,7 +3690,7 @@ LegalizerHelper::LegalizeResult LegalizerHelper::lowerLoad(GAnyLoad &LoadMI) {
3690
3690
3691
3691
if (!isPowerOf2_32 (MemSizeInBits)) {
3692
3692
// This load needs splitting into power of 2 sized loads.
3693
- LargeSplitSize = llvm::bit_floor (MemSizeInBits. getKnownMinValue () );
3693
+ LargeSplitSize = llvm::bit_floor (MemSizeInBits);
3694
3694
SmallSplitSize = MemSizeInBits - LargeSplitSize;
3695
3695
} else {
3696
3696
// This is already a power of 2, but we still need to split this in half.
You can’t perform that action at this time.
0 commit comments