diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-02-28 21:12:40 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-02-28 21:12:40 +0000 |
commit | c5a4c25b8780434a00968ed93634974a0b796a06 (patch) | |
tree | bea72e542734ca58fa272589bf1c68eb85830be7 /configure | |
parent | b3e6b04aea9d12183b97770f7b250622e78fe7f1 (diff) |
Fix a bug in instcombine for fmul in fast math mode.
The instcombine recognized pattern looks like:
a = b * c
d = a +/- Cst
or
a = b * c
d = Cst +/- a
When creating the new operands for fadd or fsub instruction following the related fmul, the first operand was created with the second original operand (M0 was created with C1) and the second with the first (M1 with Opnd0).
The fix consists in creating the new operands with the appropriate original operand, i.e., M0 with Opnd0 and M1 with C1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions