Skip to content
Commit 660728ac authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstSimplify] ctlz({signbit} >>u x) --> x

The motivating pattern was handled in 0a2d6948 ,
but we should have this for symmetry.

But this really highlights that we could generalize for
any shifted constant if we match this in instcombine.

https://alive2.llvm.org/ce/z/MrmVNt
parent 3c93852a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment