[PATCH] D44540: [X86] Merge ADDSUB/SUBADD detection into single methods that can detect either and indicate what they found.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 15 14:10:35 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.

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.


https://reviews.llvm.org/D44540

Files:
  lib/Target/X86/X86ISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44540.138620.patch
Type: text/x-patch
Size: 12432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180315/4ebafc36/attachment.bin>


More information about the llvm-commits mailing list