[PATCH] D144777: [InstCombine] Fold signbit test of a pow2 or zero

Jun Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 06:43:50 PST 2023


junaire updated this revision to Diff 500773.
junaire added a comment.

Reuse existing code and add more tests.

Just a beginer to the middle-end so bear with me if I get things wrong!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144777

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/fold-signbit-test-power2.ll
  llvm/test/Transforms/InstCombine/minmax-of-xor-x.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144777.500773.patch
Type: text/x-patch
Size: 12178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230227/0fc8c7c5/attachment.bin>


More information about the llvm-commits mailing list