According the comment https://reviews.llvm.org/D127854#inline-1226805,
We could also make use of these low zero bits, https://alive2.llvm.org/ce/z/GYxTRu
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | ||
---|---|---|
1760–1761 | Change variable name to SigBits since we're not only counting high zeros now? | |
llvm/test/Transforms/InstCombine/sitofp.ll | ||
250 | This test would be better with 16777218 (= 1 << 24 + 2). That would test the limits of high and low set bits, and the next test shows that we did not go past the limit. |
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | ||
---|---|---|
1759 | The "or compute low bit mask" part can probably be dropped now? |
llvm/test/Transforms/InstCombine/sitofp.ll | ||
---|---|---|
256–269 | Remove todo? |
The "or compute low bit mask" part can probably be dropped now?