diff options
author | Craig Topper <craig.topper@intel.com> | 2020-07-16 12:52:02 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-07-16 13:27:27 -0700 |
commit | 5408024fa87e0b23b169fec07913bd4357acdbc4 (patch) | |
tree | d6470227b62611c93ae81ec0a5ff4ee0dd06b22a /llvm/lib/Object/WasmObjectFile.cpp | |
parent | f78d9fceea736d431e9e3cbca291e3909e3aa46d (diff) | |
download | llvm-5408024fa87e0b23b169fec07913bd4357acdbc4.zip llvm-5408024fa87e0b23b169fec07913bd4357acdbc4.tar.gz llvm-5408024fa87e0b23b169fec07913bd4357acdbc4.tar.bz2 |
[X86] Move integer hadd/hsub formation into a helper function shared by combineAdd and combineSub.
There was a lot of duplicate code here for checking the VT and
subtarget. Moving it into a helper avoids that.
It also fixes a bug that combineAdd reused Op0/Op1 after a call
to isHorizontalBinOp may have changed it. The new helper function
has its own local version of Op0/Op1 that aren't shared by other
code.
Fixes PR46455.
Reviewed By: spatel, bkramer
Differential Revision: https://reviews.llvm.org/D83971
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions