[PATCH] D145299: [InstCombine] Generate better code for std::bit_ceil

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 19 14:53:08 PDT 2023


nikic requested changes to this revision.
nikic added a comment.
This revision now requires changes to proceed.

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.


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