[PATCH] D26851: [SelectionDAG] ComputeNumSignBits of TRUNCATE operations

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 18 06:15:25 PST 2016


RKSimon created this revision.
RKSimon added reviewers: qcolombet, eli.friedman, spatel, andreadb.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

Add basic ComputeNumSignBits support for TRUNCATE ops for cases where the source's number of sign bits overlaps with the truncated size.

Improves X86 SIGN_EXTEND_IN_REG vector cases which were needlessly sign extending boolean vector results.


Repository:
  rL LLVM

https://reviews.llvm.org/D26851

Files:
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/avx512-mask-op.ll
  test/CodeGen/X86/psubus.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26851.78512.patch
Type: text/x-patch
Size: 5123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161118/61aedd99/attachment.bin>


More information about the llvm-commits mailing list