llvm-project
b9dd6022 - [DAGCombiner] Remove a hasOneUse check in visitAND (#115142)

Commit
1 year ago
[DAGCombiner] Remove a hasOneUse check in visitAND (#115142) For some reason there was a hasOneUse check on the splat for the second operand and it's not obvious to me why. The check blocks optimisations for lowering of nodes like AVGFLOORU and AVGCEILU. In a follow-on patch I also plan to improve the generated code for AVGCEILU further by teaching computeKnownBits about zero-extending masked loads.
Author
Parents
Loading