[PATCH] D71200: [TypePromotion] Query target register width

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 05:26:53 PST 2019


samparker created this revision.
samparker added reviewers: hans, SjoerdMeijer, dmgreen.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

TargetLoweringInfo may report that an integer should be promoted, but it maybe provide a size that isn't natively supported by the target register file... So check this before trying to perform a promotion.

This is to fix some  chromium issues: https://bugs.chromium.org/p/chromium/issues/detail?id=1031978, https://bugs.chromium.org/p/chromium/issues/detail?id=1031979


https://reviews.llvm.org/D71200

Files:
  llvm/lib/CodeGen/TypePromotion.cpp
  llvm/test/Transforms/TypePromotion/ARM/large-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71200.232822.patch
Type: text/x-patch
Size: 5040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191209/98bc6a43/attachment.bin>


More information about the llvm-commits mailing list