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.
Paths
| Differential D134236
[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 TimelineThis 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 Closed by commit rG78833a43e8d8: [GlobalISel][Legalizer] Fix lowerSelect() not sign-extending the mask value. (authored by aemerson). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 461579 llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-select.mir
|