diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-03-13 14:46:32 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-03-13 14:46:32 +0000 |
commit | 204edeca5661d7dc80139d43507a0e268afff330 (patch) | |
tree | d6b61f8781dc0c400d3828e709083ce521372382 /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | 476ed8f26e91bce8144b4df4c20eb1c990383ba3 (diff) | |
download | bcm5719-llvm-204edeca5661d7dc80139d43507a0e268afff330.tar.gz bcm5719-llvm-204edeca5661d7dc80139d43507a0e268afff330.zip |
[InstCombine] fix fmul reassociation to avoid creating an extra fdiv
This was supposed to be an NFC refactoring that will eventually allow
eliminating the isFast() predicate, but there's a rare possibility
that we would pessimize the code as shown in the test case because
we failed to check 'hasOneUse()' properly. This version also removes
an inefficiency of the old code; we would look for:
(X * C) * C1 --> X * (C * C1)
...but that pattern is always handled by
SimplifyAssociativeOrCommutative().
llvm-svn: 327404
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions