[X86] Merge ADDSUB/SUBADD detection into single methods that can detect either and indicate what they found.
Previously, we called the same functions twice with a bool flag determining whether we should look for ADDSUB or SUBADD. It would be more efficient to run the code once and detect either pattern with a flag to tell which type it found.
Differential Revision: https://reviews.llvm.org/D44540
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327730 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed