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

Kazu Hirata via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 14:10:42 PDT 2023


kazu updated this revision to Diff 507117.
kazu added a comment.

- Removed the empty clause.
- Removed RangeOp.
- Switched to CreateNeg.
- Made the matching a little more straightforward.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145299/new/

https://reviews.llvm.org/D145299

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/bit_ceil.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145299.507117.patch
Type: text/x-patch
Size: 10845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/7e6b6a5e/attachment.bin>


More information about the llvm-commits mailing list