Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DAG] SDPatternMatch - m_Zero can't see through bitcasts #140745

Copy link
Copy link
Open
@RKSimon

Description

@RKSimon
Issue body actions

X86 uses ISD::isBuildVectorAllZeros to peek through bitcasts to match zero vectors in a large number of combines.

Ideally we'd use SDPatternMatch to match these combines and use m_Zero() instead, but regrettably this fails to match the zero vectors through bitcasts,

84397c6 shows an example of the regression

If we convert m_Zero() to something closer to m_AllOnes / AllOnes_match we might be able to make this work.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.