diff options
author | Fiona Glaser <escha@apple.com> | 2015-06-05 17:52:34 +0000 |
---|---|---|
committer | Fiona Glaser <escha@apple.com> | 2015-06-05 17:52:34 +0000 |
commit | 666e3524407e1978743281f044dff19db3c2668a (patch) | |
tree | f470cbb0f714d59e9a08bc494185767a69eda2db /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4849aa35b776c0bd9591eb9b7a61f5d9748bc9ef (diff) | |
download | llvm-666e3524407e1978743281f044dff19db3c2668a.zip llvm-666e3524407e1978743281f044dff19db3c2668a.tar.gz llvm-666e3524407e1978743281f044dff19db3c2668a.tar.bz2 |
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.
llvm-svn: 239167
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions