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

Jun Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 26 08:11:53 PST 2023


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

Hi @spatel, thanks for your comments, I updated the tests according to your
suggestions. However, everything stop folding after I use div instructions to
each oprands of and instruction.

Can you take a look? Is this because I missed something? Or my fold pattern is 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.500587.patch
Type: text/x-patch
Size: 7556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230226/203896e0/attachment.bin>


More information about the llvm-commits mailing list