At least I think that's what the 32 here is. Use RegisterBitWidth
instead.
While there replace zext with zextOrSelf to simplify the code.
Paths
| Differential D113495
[TypePromotion] Fix a hardcoded use of 32 as the size being promoted to. ClosedPublic Authored by craig.topper on Nov 9 2021, 9:52 AM.
Details Summary At least I think that's what the 32 here is. Use RegisterBitWidth While there replace zext with zextOrSelf to simplify the code.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 10 2021, 6:43 AM Comment Actions Do you mind making a couple of other adjustments whilst you are here? If not, I can look into them later - I apparently need to look into adjusting this same function.
This revision is now accepted and ready to land.Nov 10 2021, 11:24 AM Closed by commit rG096329199125: [TypePromotion] Fix a hardcoded use of 32 as the size being promoted to. (authored by craig.topper). · Explain WhyNov 10 2021, 10:12 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 386207 llvm/lib/CodeGen/TypePromotion.cpp
|
clang-format not found in user’s local PATH; not linting file.