[ConstraintElimination] Decompose or instruction if the constant operand < 2^known_ze...
authorZain Jaffal <z_jaffal@apple.com>
Tue, 7 Mar 2023 14:03:35 +0000 (14:03 +0000)
committerZain Jaffal <z_jaffal@apple.com>
Tue, 7 Mar 2023 14:11:35 +0000 (14:11 +0000)
commit2b62774b653affb7e5ef35e25745e80612b990a9
tree98ee197108e4b8249e2969493be3b41245555b44
parentffe8f47d7237cf5767f0424708670af64ba0702d
[ConstraintElimination] Decompose or instruction if the constant operand < 2^known_zero_bits of the first operand.

The or operation can be represented as an add instruction.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D142546
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/or.ll