[llvm-bugs] [Bug 11001] Bug with zero shifts in DAGTypeLegalizer:: ExpandShiftWithUnknownAmountBit
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 8 05:14:28 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=11001
Simon Pilgrim <llvm-dev at redking.me.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
CC| |llvm-dev at redking.me.uk
--- Comment #3 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Resolving very old bug - we have both getShiftAmountTyForConstant and
getShiftAmountTy for a while to prevent premature shift type truncation:
EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, const DataLayout &DL,
bool LegalTypes) const {
assert(LHSTy.isInteger() && "Shift amount is not an integer type!");
if (LHSTy.isVector())
return LHSTy;
return LegalTypes ? getScalarShiftAmountTy(DL, LHSTy)
: getPointerTy(DL);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210708/90b12c69/attachment-0001.html>
More information about the llvm-bugs
mailing list