]> granicus.if.org Git - llvm/commit
[x86] add folds for x86 vector compare nodes (PR27924)
authorSanjay Patel <spatel@rotateright.com>
Wed, 15 Jun 2016 20:26:58 +0000 (20:26 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 15 Jun 2016 20:26:58 +0000 (20:26 +0000)
commit2df18c8dc0d4b38c9796d2702227b4166d25be0c
treefabf14a6d97a23a7f18a7a5c838ff584291c1184
parentc882f76cf5418b65837ce7c0263ec229d3affefa
[x86] add folds for x86 vector compare nodes (PR27924)

Ideally, we can get rid of most x86 LLVM intrinsics by transforming them to IR (and some of that happened
with http://reviews.llvm.org/rL272807), but it doesn't cost much to have some simple folds in the backend
too while we're working on that and as a backstop.

This fixes:
https://llvm.org/bugs/show_bug.cgi?id=27924

Differential Revision: http://reviews.llvm.org/D21356

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272828 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-compare-combines.ll