Skip to content

Commit 1474462

Browse files
committed
Target: Use getPointerSizeInBits instead of 8 * getPointerSize
1 parent f635be3 commit 1474462

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/lib/Target/M68k/M68kISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ MVT M68kTargetLowering::getScalarShiftAmountTy(const DataLayout &DL,
173173
if (Ty.isSimple()) {
174174
return Ty.getSimpleVT();
175175
}
176-
return MVT::getIntegerVT(8 * DL.getPointerSize(0));
176+
return MVT::getIntegerVT(DL.getPointerSizeInBits(0));
177177
}
178178

179179
#include "M68kGenCallingConv.inc"

llvm/lib/Target/Sparc/SparcISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ static SPCC::CondCodes FPCondCCodeToFCC(ISD::CondCode CC) {
14541454
SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM,
14551455
const SparcSubtarget &STI)
14561456
: TargetLowering(TM), Subtarget(&STI) {
1457-
MVT PtrVT = MVT::getIntegerVT(8 * TM.getPointerSize(0));
1457+
MVT PtrVT = MVT::getIntegerVT(TM.getPointerSizeInBits(0));
14581458

14591459
// Instructions which use registers as conditionals examine all the
14601460
// bits (as does the pseudo SELECT_CC expansion). I don't think it

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static MachineOperand earlyUseOperand(MachineOperand Op) {
8080
SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM,
8181
const SystemZSubtarget &STI)
8282
: TargetLowering(TM), Subtarget(STI) {
83-
MVT PtrVT = MVT::getIntegerVT(8 * TM.getPointerSize(0));
83+
MVT PtrVT = MVT::getIntegerVT(TM.getPointerSizeInBits(0));
8484

8585
auto *Regs = STI.getSpecialRegisters();
8686

0 commit comments

Comments
 (0)