Files
clang-p2996/llvm/lib/Transforms/InstCombine
Maurice Heumann 27eaa8a40e [InstCombine] Prevent infinite loop with two shifts (#118806)
The following pattern: `(C2 << X) << C1` will usually be transformed
into `(C2 << C1) << X`, essentially swapping `X` and `C1`.

However, this should only be done when `C1` is an immediate constant,
otherwise thiscan lead to both constants being swapped forever.

This fixes #118798.
2024-12-05 16:57:27 +01:00
..