This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Prevent the transform of the comparison for all undef elements
AbandonedPublic

Authored by Allen on Aug 7 2021, 12:23 AM.

Details

Reviewers
lebedev.ri
Summary

Some pass such as Loop Vectorization(-fvectorize) may generate undef elements
constant, which will ball out the combine optimization.

Diff Detail

Event Timeline

Allen created this revision.Aug 7 2021, 12:23 AM
Allen requested review of this revision.Aug 7 2021, 12:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2021, 12:23 AM
lebedev.ri requested changes to this revision.Aug 7 2021, 12:27 AM
lebedev.ri added a subscriber: lebedev.ri.

The test already passes without the code change.

This revision now requires changes to proceed.Aug 7 2021, 12:27 AM
Allen updated this revision to Diff 364948.Aug 7 2021, 3:17 AM
lebedev.ri requested changes to this revision.Aug 7 2021, 3:26 AM
This revision now requires changes to proceed.Aug 7 2021, 3:26 AM
Allen added a comment.Aug 10 2021, 8:06 PM

The test already passes without the code change.

Oh, sorry. this bug fix with 2813acb7d1 Update m_Undef to match vectors/aggrs with undefs and poisons mixed, my local code is too old.

Allen abandoned this revision.Aug 16 2021, 8:46 AM

Abandon as this bug already fixed with the newest commit