Eric Christopher
cee313d288
Revert "Temporarily Revert "Add basic loop fusion pass.""
...
The reversion apparently deleted the test/Transforms directory.
Will be re-reverting again.
llvm-svn: 358552
2019-04-17 04:52:47 +00:00
Eric Christopher
a863435128
Temporarily Revert "Add basic loop fusion pass."
...
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
2019-04-17 02:12:23 +00:00
Simon Pilgrim
a131e4e296
[TTI] Add generic UADDSAT/USUBSAT costs
...
Add generic costs calculation for UADDSAT/USUBSAT intrinsics, this fallbacks to using generic costs for uadd_with_overflow/usub_with_overflow + a select.
Differential Revision: https://reviews.llvm.org/D56907
llvm-svn: 352044
2019-01-24 12:27:10 +00:00
Nikita Popov
d3b86b79fa
Reapply "[CodeGen][X86] Expand USUBSAT to UMAX+SUB, also for vectors"
...
Related to https://bugs.llvm.org/show_bug.cgi?id=40123 .
Rather than scalarizing, expand a vector USUBSAT into UMAX+SUB,
which produces much better code for X86.
Reapplying with updated SLPVectorizer tests.
Differential Revision: https://reviews.llvm.org/D56636
llvm-svn: 351219
2019-01-15 18:43:41 +00:00
Simon Pilgrim
4e38b8f8bd
[SLP][X86] Split prefer-256-bit 'AVX256BW' tests from AVX2 checks
...
Fixes SLP test issue with D56636
llvm-svn: 351199
2019-01-15 16:13:37 +00:00
Simon Pilgrim
c2aadfaaad
[SLPVectorizer] Flag ADD/SUB SSAT/USAT intrinsics trivially vectorizable (PR40123)
...
Enables SLP vectorization for the SSE2 PADDS/PADDUS/PSUBS/PSUBUS style intrinsics
llvm-svn: 350300
2019-01-03 12:18:23 +00:00
Simon Pilgrim
c5e22b29e4
[SLPVectorizer][X86] Add ADD/SUB SSAT/USAT tests (PR40123)
...
llvm-svn: 350297
2019-01-03 12:02:14 +00:00