This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Support fold zero scalar vector.
ClosedPublic

Authored by junparser on Apr 19 2021, 9:09 PM.

Details

Summary

This patch changes ISD::isBuildVectorAllZeros to
ISD::isConstantSplatVectorAllZeros which handles zero sclar vector.

TestPlan: check-llvm

Diff Detail

Event Timeline

junparser created this revision.Apr 19 2021, 9:09 PM
junparser requested review of this revision.Apr 19 2021, 9:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2021, 9:09 PM
junparser edited the summary of this revision. (Show Details)Apr 19 2021, 9:10 PM
david-arm accepted this revision.Apr 20 2021, 12:52 AM

LGTM! Some nice improvements here, thanks!

This revision is now accepted and ready to land.Apr 20 2021, 12:52 AM
This revision was automatically updated to reflect the committed changes.