diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-06-11 07:57:50 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-06-11 07:57:50 +0000 |
| commit | c7af75f9a7701e48d69cf01d62efa46a215e9da0 (patch) | |
| tree | 453c6dba30451ec5698b1678072d57ff2fc2f9ee /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 4ac7de7199d431b47c6c71e6529951bb284dcb7f (diff) | |
[X86] Refactor the logic to select horizontal adds/subs to a helper function.
This patch moves part of the logic implemented by the target specific
combine rules added at r210477 to a separate helper function.
This should make easier to add more rules for matching AVX/AVX2 horizontal
adds/subs.
This patch also fixes a problem caused by a wrong check performed on indices
of extract_vector_elt dag nodes in input to the scalar adds/subs.
New tests have been added to verify that we correctly check indices of
extract_vector_elt dag nodes when selecting a horizontal operation.
llvm-svn: 210644
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
