[DAGCombiner] Fix issue with rot chain pattern
faa35fc8 fix the case of negative input shift. But when `c1`, `c2` is not the same side, it will also cause negative shift amount. And that negative shift amount can't normalize by urem. So add one more bit size to normalize the last shift amount. Fix: https://github.com/llvm/llvm-project/issues/59898 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D141363
parent
b84ab1f7
Please register or sign in to comment