diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2014-08-14 15:15:28 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2014-08-14 15:15:28 +0000 |
| commit | 35d3133650e7f1907d03c98886286e328cee12e8 (patch) | |
| tree | 644f7f65161ac0311b7f412a22ad67e4c267ce4d /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
| parent | 36d3ee7c32cfeda4c76cb556781ef113c8463dff (diff) | |
| download | llvm-35d3133650e7f1907d03c98886286e328cee12e8.zip llvm-35d3133650e7f1907d03c98886286e328cee12e8.tar.gz llvm-35d3133650e7f1907d03c98886286e328cee12e8.tar.bz2 | |
optimize vector fneg of bitcasted integer value
This patch allows a vector fneg of a bitcasted integer value to be optimized in the same way that we already optimize a scalar fneg. If the integer variable is a constant, we can precompute the result and not require any logic ops.
This patch is very similar to a fabs patch committed at r214892.
Differential Revision: http://reviews.llvm.org/D4852
llvm-svn: 215646
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions
