commit | 5a0d6b758c21b6a7b00cf8291c99af7ef4daa3d1 | [log] [tgz] |
---|---|---|
author | Fiona Glaser <escha@apple.com> | Fri Jun 05 17:52:34 2015 +0000 |
committer | Fiona Glaser <escha@apple.com> | Fri Jun 05 17:52:34 2015 +0000 |
tree | e92168bc0abf5578341ebea0eaf410c303222a1b | |
parent | 485adcac20be9b4c42583a8a552cfde53cc6553f [diff] |
DAGCombiner: don't duplicate (fmul x, c) in visitFNEG if fneg is free For targets with a free fneg, this fold is always a net loss if it ends up duplicating the multiply, so definitely avoid it. This might be true for some targets without a free fneg too, but I'll leave that for future investigation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239167 91177308-0d34-0410-b5e6-96231b3b80d8