[PATCH] D142546: [ConstraintElimination] Decompose or instruction if the constant operand < 2^known_zero_bits of the first operand.

Zain Jaffal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 07:40:38 PST 2023


zjaffal created this revision.
zjaffal added a reviewer: fhahn.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
zjaffal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The or operation can be represented as an add instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142546

Files:
  llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
  llvm/test/Transforms/ConstraintElimination/or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142546.492109.patch
Type: text/x-patch
Size: 5211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230125/cbfb79fd/attachment.bin>


More information about the llvm-commits mailing list