This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][Legalizer] Fix lowerSelect() not sign-extending the mask value.
ClosedPublic

Authored by aemerson on Sep 19 2022, 4:25 PM.

Details

Summary

I'm not sure why the SEXT_INREG was gated on a bitwidth check of the mask vs element size.

This fixes a miscompile in chromium's skia library.

Diff Detail

Event Timeline

aemerson created this revision.Sep 19 2022, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 4:25 PM
aemerson requested review of this revision.Sep 19 2022, 4:25 PM
arsenm accepted this revision.Sep 20 2022, 7:00 AM
This revision is now accepted and ready to land.Sep 20 2022, 7:00 AM
This revision was landed with ongoing or failed builds.Sep 20 2022, 8:40 AM
This revision was automatically updated to reflect the committed changes.