DAGCombiner::visitRotate patch to optimize pair of ROTR/ROTL instructions into one with combined shift operand.
For two ROTR operations with shifts C1, C2; combined shift operand will be (C1 + C2) % bitsize.
rotr x, C1, y rotr y, C2, z
Combines into:
rotr x, (C1 + C2) % bitsize, z
rotr x, C1, y rotl y, C2, z
Combines into:
rotr x, (C1 - C2) % bitsize, z
rotl x, C1, y rotl y, C2, z
Combines into:
rotl x, (C1 + C2) % bitsize, z
rotl x, C1, y rotr y, C2, z
Combines into:
rotl x, (C1 - C2) % bitsize, z
You can do all of the above as a NFC pre-commit and simplify this patch