forked from OSchip/llvm-project
[SelectionDAG] ComputeNumSignBits - clang-format + improve *EXTLOAD comments. NFCI.
Pre-commit requested for D62777. llvm-svn: 362485
This commit is contained in:
parent
5d5078e341
commit
3178546a27
|
@ -3878,13 +3878,13 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
|
|||
if (LoadSDNode *LD = dyn_cast<LoadSDNode>(Op)) {
|
||||
unsigned ExtType = LD->getExtensionType();
|
||||
switch (ExtType) {
|
||||
default: break;
|
||||
case ISD::SEXTLOAD: // '17' bits known
|
||||
Tmp = LD->getMemoryVT().getScalarSizeInBits();
|
||||
return VTBits-Tmp+1;
|
||||
case ISD::ZEXTLOAD: // '16' bits known
|
||||
Tmp = LD->getMemoryVT().getScalarSizeInBits();
|
||||
return VTBits-Tmp;
|
||||
default: break;
|
||||
case ISD::SEXTLOAD: // e.g. i16->i32 = '17' bits known.
|
||||
Tmp = LD->getMemoryVT().getScalarSizeInBits();
|
||||
return VTBits - Tmp + 1;
|
||||
case ISD::ZEXTLOAD: // e.g. i16->i32 = '16' bits known.
|
||||
Tmp = LD->getMemoryVT().getScalarSizeInBits();
|
||||
return VTBits - Tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue