Craig Topper
3731f4d173
[AVX-512][InstCombine] Teach InstCombine to optimize 512-bit packss/packus intrinsics like it does 128/256-bit.
...
llvm-svn: 295294
2017-02-16 07:35:23 +00:00
Simon Pilgrim
6f6b279109
[InstCombine][SSE] Add support for PACKSS/PACKUS constant folding
...
Differential Revision: https://reviews.llvm.org/D28949
llvm-svn: 293060
2017-01-25 14:37:24 +00:00
Simon Pilgrim
2817b476e8
[InstCombine][SSE] Tests showing missed opportunities to constant fold packss/packus
...
llvm-svn: 292609
2017-01-20 13:21:30 +00:00
Simon Pilgrim
8942722cbc
[InstCombine][SSE] Tests showing missed opportunities to handle packss/packus with undef arguments
...
llvm-svn: 292601
2017-01-20 11:28:07 +00:00
Simon Pilgrim
51b3b98e3a
[InstCombine][SSE] Add DemandedElts support for PACKSS/PACKUS instructions
...
Simplify a packss/packus truncation based on the elements of the mask that are actually demanded.
Differential Revision: https://reviews.llvm.org/D28777
llvm-svn: 292591
2017-01-20 09:28:21 +00:00
Simon Pilgrim
87eddf9aaf
[InstCombine][SSE] Tests showing missed opportunities to pass demanded elts through a packss/packus truncation
...
llvm-svn: 292144
2017-01-16 17:26:23 +00:00