[PATCH] D58470: [X86] Reduce some patterns by using FP instructions for integer types even when AVX2 is available and execution domain fixing will do the right thing

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 12:32:00 PST 2019


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

We have quite a few cases of using FP instructions for integer operations when only AVX1 is available. Then we switch to integer instructions with AVX2. In a lot of these cases execution domain fixing will take care of turning FP instructions into integer if its profitable.

With this patch we just keep on using the FP instructions even with AVX2. I've only handled some cases that don't require messing with patterns that are defined in the instruction definition. Those will require more subtle multiclass work possibly involving null_frag, hasSideEffects = 0, etc.


https://reviews.llvm.org/D58470

Files:
  lib/Target/X86/X86InstrSSE.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58470.187647.patch
Type: text/x-patch
Size: 5580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190220/ffe2ffe5/attachment.bin>


More information about the llvm-commits mailing list