This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Ensure Legal BUILD_VECTOR elements types in shuffle->And combine
ClosedPublic

Authored by dmgreen on Aug 7 2022, 1:57 AM.

Details

Summary

D129150 added a combine from shuffles to And that creates a BUILD_VECTOR of constant elements. We need to ensure that the elements are of a legal type, to prevent asserts during lowering.

Fixes #56970.

Diff Detail

Event Timeline

dmgreen created this revision.Aug 7 2022, 1:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2022, 1:57 AM
dmgreen requested review of this revision.Aug 7 2022, 1:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2022, 1:57 AM
RKSimon accepted this revision.Aug 7 2022, 9:41 AM

LGTM

llvm/test/CodeGen/ARM/vector-store.ll
401

Please can you add a comment referencing it fixes PR56970?

This revision is now accepted and ready to land.Aug 7 2022, 9:41 AM
This revision was landed with ongoing or failed builds.Aug 8 2022, 1:48 AM
This revision was automatically updated to reflect the committed changes.

Yeah I will take a look. It doesn't looks like the same error is happening on trunk? At least I see a different error in https://lab.llvm.org/buildbot/#/builders/16/builds/33479.

Yeah I will take a look. It doesn't looks like the same error is happening on trunk? At least I see a different error in https://lab.llvm.org/buildbot/#/builders/16/builds/33479.

Yeah - I reported that one as well: https://github.com/llvm/llvm-project/issues/57149

Mondays............