[PATCH] D35320: [X86][SSE] Add support for extending bool vectors bitcasted from scalars.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 06:55:40 PDT 2017
RKSimon updated this revision to Diff 106865.
RKSimon added a comment.
Moved to AND+CMPEQ pattern suggested by @delena.
This required a modification to LowerVSETCC to reverse a dag combine to: (X & Y) != 0 --> (X & Y) == Y iff Y is power-of-2. This avoids an inversion and the creation of 0/-1 bits vectors.
Repository:
rL LLVM
https://reviews.llvm.org/D35320
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/bitcast-int-to-vector-bool-sext.ll
test/CodeGen/X86/bitcast-int-to-vector-bool-zext.ll
test/CodeGen/X86/bitcast-int-to-vector-bool.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35320.106865.patch
Type: text/x-patch
Size: 371751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170717/44bce193/attachment-0001.bin>
More information about the llvm-commits
mailing list