Skip to content
Unverified Commit 2614672c authored by elhewaty's avatar elhewaty Committed by GitHub
Browse files

[InstCombine] Fold ((cst << x) & 1) --> x == 0 when cst is odd (#79772)

Fold ((cst << x) & 1) to zext(x == 0) when cst is odd.

Fixes: https://github.com/llvm/llvm-project/issues/73384
Alive2: https://alive2.llvm.org/ce/z/5RbaK6
parent ae92f6e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment