Skip to content
Commit 9f331310 authored by Andrea Di Biagio's avatar Andrea Di Biagio
Browse files

Teach DAGCombiner how to canonicalize dags according to the rule

 (shl (zext (shr A, X)), X) => (zext (shl (shr A, X), X)).

The rule only triggers when there are no other uses of the
zext to avoid materializing more instructions.

This helps the DAGCombiner understand that the shl/shr
sequence can then be converted into an and instruction.

llvm-svn: 191393
parent 25b09283
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment