[PATCH] D146609: [InstCombine] Fold xor of icmps of power of 2

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 23:45:33 PDT 2023


StephenFan created this revision.
StephenFan added reviewers: nikic, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

https://alive2.llvm.org/ce/z/HKt_Rg

The motivation to do this is D146149 <https://reviews.llvm.org/D146149> caused a code size regression in
our ci https://github.com/dtcxzyw/llvm-ci/issues/23.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146609

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/test/Transforms/InstCombine/bit-checks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146609.507252.patch
Type: text/x-patch
Size: 5941 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230322/d0c4eccf/attachment.bin>


More information about the llvm-commits mailing list