This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Fix PR58177: Improve isUndefVector function to avoid extra freeze.
ClosedPublic

Authored by ABataev on Oct 6 2022, 11:22 AM.

Details

Summary

Freeze instruction in some cases makes codegen worse, so need to be very
careful when emitting it. Instead improve analysis in isUndefVector
function to generate mask of unused elements and use it in the analysis.

Diff Detail

Event Timeline

ABataev created this revision.Oct 6 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 11:22 AM
ABataev requested review of this revision.Oct 6 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 11:22 AM
dyung added a comment.Oct 6 2022, 11:54 AM

I can confirm that the codegen for the function in #58177 is back to what it used to be, and there don't seem to be any new regressions in this particular test from this change.

RKSimon accepted this revision.Oct 12 2022, 6:25 AM

LGTM

This revision is now accepted and ready to land.Oct 12 2022, 6:25 AM
This revision was landed with ongoing or failed builds.Oct 12 2022, 7:35 AM
This revision was automatically updated to reflect the committed changes.