[llvm] DAGCombiner: (srl/sra (add nuw/nsw X, c), d) --> (add nuw/nsw (srl/sra X, d), c >> d) (PR #196379)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 03:06:02 PDT 2026


https://github.com/jayfoad commented:

Makes sense to me. I guess this objectively makes sense as a simplification because C>>D is a simpler constant than C.

https://github.com/llvm/llvm-project/pull/196379


More information about the llvm-commits mailing list