HomePhabricator

[InstCombine] Z / (1.0 / Y) => (Y * Z)

Authored by raghesh on Jan 9 2020, 7:52 AM.

Description

[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

Details

Committed
spatelJan 9 2020, 7:52 AM
Differential Revision
D72319: [InstCombine] Adding Z / (1.0 / Y) => (Y * Z)
Parents
rG0fa8f701ccf6: [ELF][Hexagon] Add support for IE relocations
Branches
Unknown
Tags
Unknown