[llvm] r360315 - [CodeGen] Use "DL.getPointerSizeInBits" instead of "8 * DL.getPointerSize". NFC
Bjorn Pettersson via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 01:07:36 PDT 2019
Author: bjope
Date: Thu May 9 01:07:36 2019
New Revision: 360315
URL: http://llvm.org/viewvc/llvm-project?rev=360315&view=rev
Log:
[CodeGen] Use "DL.getPointerSizeInBits" instead of "8 * DL.getPointerSize". NFC
Modified:
llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
Modified: llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp?rev=360315&r1=360314&r2=360315&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp Thu May 9 01:07:36 2019
@@ -722,7 +722,7 @@ void TargetLoweringBase::initActions() {
MVT TargetLoweringBase::getScalarShiftAmountTy(const DataLayout &DL,
EVT) const {
- return MVT::getIntegerVT(8 * DL.getPointerSize(0));
+ return MVT::getIntegerVT(DL.getPointerSizeInBits(0));
}
EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, const DataLayout &DL,
More information about the llvm-commits
mailing list