Skip to content
Commit de7881eb authored by Noah Goldstein's avatar Noah Goldstein
Browse files

[DAGCombiner] Combine `(select c, (and X, 1), 0)` -> `(and (zext c), X)`

The middle end canonicalizes:
`(and (zext c), X)`
    -> `(select c, (and X, 1), 0)`

But the `and` + `zext` form gets better codegen.
parent e3e9c940
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment