[InstCombine] Adding testcase for Z / (1.0 / Y) => (Y * Z); NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 8 Jan 2020 15:33:44 +0000 (10:33 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 8 Jan 2020 15:33:44 +0000 (10:33 -0500)
commit5dfd52398f5c1b67024106febdc68e6b12f8ad37
treed15effd888a015a527f51f59839ca63698609e35
parent780ba1f22b53116918cf12decccaed7ba2292bd5
[InstCombine] Adding testcase for Z / (1.0 / Y) => (Y * Z); NFC

The added testcase shows the current transformation for the operation
Z / (1.0 / Y), which remains unchanged. This will be updated to align
with the transformed code (Y * Z) with D72319.

The existing transformation Z / (X / Y) => (Y * Z) / X is not handling
this case as there are multiple uses for (1.0 / Y) in this testcase.

Patch by: @raghesh (Raghesh Aloor)

Differential Revision: https://reviews.llvm.org/D72388
llvm/test/Transforms/InstCombine/fdiv.ll