diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-07 10:40:01 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-07 10:40:01 +0000 |
commit | 07adb6abdadfed379a9998e53beb82ce1e253b0e (patch) | |
tree | a1656b1a8d452b69f8cd08a3767a00526756e571 /llvm/lib/Object/Object.cpp | |
parent | 47a7662e29b669358e8b8d193f59e5c8d68568e8 (diff) | |
download | llvm-07adb6abdadfed379a9998e53beb82ce1e253b0e.zip llvm-07adb6abdadfed379a9998e53beb82ce1e253b0e.tar.gz llvm-07adb6abdadfed379a9998e53beb82ce1e253b0e.tar.bz2 |
[X86][SSE] SimplifyDemandedBitsForTargetNode - Add initial PACKSS support
In the case where we only want the sign bit (e.g. when using PACKSS truncation of comparison results for MOVMSK) then we can just demand the sign bit of the source operands.
This makes use of the fact that PACKSS saturates out of range values to the min/max int values - so the sign bit is always preserved.
Differential Revision: https://reviews.llvm.org/D60333
llvm-svn: 357859
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions