This is an archive of the discontinued LLVM Phabricator instance.

[TypePromotion] Query target register width
ClosedPublic

Authored by samparker on Dec 9 2019, 5:23 AM.

Details

Summary

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

Diff Detail

Event Timeline

samparker created this revision.Dec 9 2019, 5:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2019, 5:23 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
hans accepted this revision.Dec 10 2019, 3:41 AM

I'm not familiar with this code, but this change looks reasonable to me.

This revision is now accepted and ready to land.Dec 10 2019, 3:41 AM
SjoerdMeijer accepted this revision.Dec 10 2019, 3:44 AM

Looks like a good fix to me.

Ah, didn't see the LGTM until I pressed the button myself.

This revision was automatically updated to reflect the committed changes.