Skip to content

[InstCombine] Fold (X == 0 ? Y : 0) | X to X == 0 ? Y : X #137161

@s-barannikov

Description

@s-barannikov

https://gcc.godbolt.org/z/9vG3fEv8M

In this example (taken from compiler-rt), select could be folded with or: https://alive2.llvm.org/ce/z/NqzEaM

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions