Skip to content

Add constant folding for llvm.experimental.cttz.elts #182324

@lukel97

Description

@lukel97

https://godbolt.org/z/dWhYshzMf

For fixed length vectors at least, we should be able to constant fold llvm.experimental.cttz.elts when the input vector is a constant vector. There is a test case in the loop vectorizer that could benefit from this.

Metadata

Metadata

Assignees

Labels

constant-foldingProblems related to constant folding in the optimizer

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions