diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-08-24 14:59:15 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-08-24 16:02:12 -0400 |
commit | f7ab70cf8df6117312a2b76588269b9a1269a620 (patch) | |
tree | 444accad68a1929d2dcefbadc0bc16426714c55a /llvm/lib/Object/ObjectFile.cpp | |
parent | 24d521815f6cf34944b0f6d3fa1acd1a881737f6 (diff) | |
download | llvm-f7ab70cf8df6117312a2b76588269b9a1269a620.zip llvm-f7ab70cf8df6117312a2b76588269b9a1269a620.tar.gz llvm-f7ab70cf8df6117312a2b76588269b9a1269a620.tar.bz2 |
[InstCombine] reduce disguised mul+add factorization
~(A * C1) + A --> (A * (1 - C1)) - 1
This is a non-obvious mix of bitwise logic and math:
https://alive2.llvm.org/ce/z/U7ACVT
The pattern may be produced by Negator from the more typical
code seen in issue #57255.
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions