nir/algebraic: Fix and add some shift-of-shift optimizations
The first commit fixes some regressions introduced in !6599 (00b28a50). piglit!469 (merged) adds some tests to exhibit these issues.
The second commit adds some patterns overlooked in !2271 (5476d181).
Edited by Ian Romanick