This is an archive of the discontinued LLVM Phabricator instance.

[DAG] isGuaranteedNotToBeUndefOrPoison - handle ISD::BUILD_VECTOR nodes
ClosedPublic

Authored by RKSimon on Jul 30 2021, 9:11 AM.

Details

Summary

If all demanded elements of the BUILD_VECTOR pass a isGuaranteedNotToBeUndefOrPoison check, then we can treat this specific demanded use of the BUILD_VECTOR as guaranteed not to be undef or poison either.

NOTE: BUILD_VECTOR has implicit truncation of wider scalar elements - this shouldn't affect the result afaict.

Diff Detail

Event Timeline

RKSimon created this revision.Jul 30 2021, 9:11 AM
RKSimon requested review of this revision.Jul 30 2021, 9:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2021, 9:11 AM
This revision is now accepted and ready to land.Jul 30 2021, 12:04 PM
aqjune accepted this revision.Jul 30 2021, 4:54 PM

LGTM too.

This revision was landed with ongoing or failed builds.Jul 31 2021, 7:08 AM
This revision was automatically updated to reflect the committed changes.