diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2015-03-01 00:09:35 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2015-03-01 00:09:35 +0000 |
| commit | b8c907e2a7bb021d9f6a2c7ff70e42a8bd8af87d (patch) | |
| tree | 485d3e0c30724bcbd64c5b08ac9e34329f9b3aea /llvm/test/tools | |
| parent | d076b2a8791bb0627e312292f5bbaeb5b5b87130 (diff) | |
| download | bcm5719-llvm-b8c907e2a7bb021d9f6a2c7ff70e42a8bd8af87d.tar.gz bcm5719-llvm-b8c907e2a7bb021d9f6a2c7ff70e42a8bd8af87d.zip | |
avoid infinite looping when folding vector multiplies of constants (PR22698)
We were missing a check for the following fold in DAGCombiner:
// fold (fmul (fmul x, c1), c2) -> (fmul x, (fmul c1, c2))
If 'x' is also a constant, then we shouldn't do anything. Otherwise, we could end up swapping the operands back and forth forever.
This should fix:
http://llvm.org/bugs/show_bug.cgi?id=22698
Differential Revision: http://reviews.llvm.org/D7917
llvm-svn: 230884
Diffstat (limited to 'llvm/test/tools')
0 files changed, 0 insertions, 0 deletions

