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 | a069e641128d852b0fdd4e8e49b0cbc40f004aec (patch) | |
| tree | 63679f9904297ab26c58315c609109c5f18833bf /lib/Bitcode/Reader/BitcodeReader.h | |
| parent | e65c40320b1e9cda26e7ea3c7f16c6f97a0f2be6 (diff) | |
| download | llvm-a069e641128d852b0fdd4e8e49b0cbc40f004aec.tar.gz llvm-a069e641128d852b0fdd4e8e49b0cbc40f004aec.tar.bz2 llvm-a069e641128d852b0fdd4e8e49b0cbc40f004aec.tar.xz | |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions
