[PATCH] D145299: [InstCombine] Generate better code for std::bit_ceil
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 19 17:21:38 PDT 2023
kazu added a comment.
In D145299#4205118 <https://reviews.llvm.org/D145299#4205118>, @nikic wrote:
> I haven't looked in detail what you're doing here, but you're clearly looking for the `ConstantRange` class. `makeExactICmpRegion()`, `add()`, `sub()`, `binaryNot()`, etc.
Thank you for the pointer. I started using `ConstantRange` in this patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145299/new/
https://reviews.llvm.org/D145299
More information about the llvm-commits
mailing list