[PATCH] D29687: [TargetLowering] check for sign-bit comparisons in SimplifyDemandedBits
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 14:58:19 PST 2017
spatel updated this revision to Diff 87530.
spatel added a comment.
Patch updated:
I'm not sure how to expose this, but I think I was missing a check for BooleanContent::ZeroOrNegativeOneBooleanContent. If the target/type uses a different format for setcc, it probably wouldn't make sense to demand the top bit, but let's check that to be safe?
https://reviews.llvm.org/D29687
Files:
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/vselect-pcmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29687.87530.patch
Type: text/x-patch
Size: 9059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170207/36937490/attachment-0001.bin>
More information about the llvm-commits
mailing list