diff options
author | @raghesh (Raghesh Aloor) <raghesh.a@gmail.com> | 2020-01-09 10:52:39 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2020-01-09 10:52:39 -0500 |
commit | 6c04ef472a8739a60a7935f77edfbacd2f50eb73 (patch) | |
tree | 535979b6af34ab81a13e97d292ee1c9fbafa9876 /lldb/scripts/Python | |
parent | 0fa8f701ccf6f29544394b358f38b748e3f7ab24 (diff) | |
download | llvm-6c04ef472a8739a60a7935f77edfbacd2f50eb73.zip llvm-6c04ef472a8739a60a7935f77edfbacd2f50eb73.tar.gz llvm-6c04ef472a8739a60a7935f77edfbacd2f50eb73.tar.bz2 |
[InstCombine] Z / (1.0 / Y) => (Y * Z)
This is a special case of Z / (X / Y) => (Y * Z) / X, with X = 1.0.
The m_OneUse check is avoided because even in the case of the
multiple uses for 1.0/Y, the number of instructions remain the same
and a division is replaced by a multiplication.
Differential Revision: https://reviews.llvm.org/D72319
Diffstat (limited to 'lldb/scripts/Python')
0 files changed, 0 insertions, 0 deletions