diff options
author | Sanjay Patel <spatel@rotateright.com> | 2023-01-17 14:37:18 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2023-01-17 14:58:40 -0500 |
commit | 68c197f07eeae71b9b772c9e0c3b846c7025b332 (patch) | |
tree | 0c012939707adc59259d4fd42f40158ee829ea83 /llvm/unittests/ADT/ArrayRefTest.cpp | |
parent | bf44905183efe54599956e308a236635c9b46e71 (diff) | |
download | llvm-68c197f07eeae71b9b772c9e0c3b846c7025b332.zip llvm-68c197f07eeae71b9b772c9e0c3b846c7025b332.tar.gz llvm-68c197f07eeae71b9b772c9e0c3b846c7025b332.tar.bz2 |
[InstCombine] factor difference-of-squares to reduce multiplication
(X * X) - (Y * Y) --> (X + Y) * (X - Y)
https://alive2.llvm.org/ce/z/BAuRCf
The no-wrap propagation could be relaxed in some cases,
but there does not seem to be an obvious rule for that.
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions