This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Fix non-pow-2 legalization of s56 stores.
ClosedPublic

Authored by aemerson on Jul 16 2021, 1:18 PM.

Details

Summary

s56 stores are broken down into s32 + s24 stores. During this step both of those new stores use an anyextended s64 value, resulting in truncating stores. With s56, the s24 requires another lower step to make it legal, and we were crashing because we didn't expect non-pow-2 stores to also be truncating as well.

Diff Detail

Event Timeline

aemerson created this revision.Jul 16 2021, 1:18 PM
aemerson requested review of this revision.Jul 16 2021, 1:18 PM
This revision is now accepted and ready to land.Jul 16 2021, 1:23 PM
This revision was landed with ongoing or failed builds.Jul 16 2021, 1:30 PM
This revision was automatically updated to reflect the committed changes.