]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
DAGCombiner: Canonicalize vector integer abs in the same way we do it for scalars.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Apr 2013 09:19:19 +0000 (09:19 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Apr 2013 09:19:19 +0000 (09:19 +0000)
commit6242fda42ad13eebc908e744426ae7bc8cf8d1c3
tree71212f305027e461844fc0631056819517c0d0ea
parent7557e521e50180817a165f8c897220b0e2020b7b
DAGCombiner: Canonicalize vector integer abs in the same way we do it for scalars.

This already helps SSE2 x86 a lot because it lacks an efficient way to
represent a vector select. The long term goal is to enable the backend to match
a canonicalized pattern into a single instruction (e.g. vabs or pabs).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/viabs.ll [new file with mode: 0644]