diff options
author | David Green <david.green@arm.com> | 2022-02-14 11:18:35 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2022-02-14 11:18:35 +0000 |
commit | 03380c70ed548224e2fd8280bc92f69d356d258c (patch) | |
tree | 65085236b47b4cebfeff21278687450ecee580bd /llvm/lib/Bitcode/Reader | |
parent | a87d3ba61c64bf957f2f9369e4d076cbbf3d486f (diff) | |
download | llvm-03380c70ed548224e2fd8280bc92f69d356d258c.zip llvm-03380c70ed548224e2fd8280bc92f69d356d258c.tar.gz llvm-03380c70ed548224e2fd8280bc92f69d356d258c.tar.bz2 |
[DAGCombine] Basic combines for AVG nodes.
This adds very basic combines for AVG nodes, mostly for constant folding
and handling degenerate (zero) cases. The code performs mostly the same
transforms as visitMULHS, adjusted for AVG nodes.
Constant folding extends to a higher bitwidth and drops the lowest bit.
For undef nodes, `avg undef, x` is transformed to x. There is also a
transform for `avgfloor x, 0` transforming to `shr x, 1`.
Differential Revision: https://reviews.llvm.org/D119559
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions