This patch uses KnownOnes of the input of ctlz/cttz to bound the value that can be returned from these intrinsics. This makes these intrinsics more similar to the handling for ctpop which already uses known bits to produce a similar bound.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/Transforms/InstCombine/intrinsics.ll | ||
---|---|---|
304–312 ↗ | (On Diff #97301) | Can you add a negative test for each of ctlz/cttz? |