aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorZvi Rackover <zvi.rackover@intel.com>2017-07-03 15:47:40 +0000
committerZvi Rackover <zvi.rackover@intel.com>2017-07-03 15:47:40 +0000
commitd7a1c334ce1f26a056b8b553d2474e895c65c96a (patch)
tree8256a5050bbe0e1330dc60633d459da34e864955 /llvm/unittests/Support/MathExtrasTest.cpp
parent4eeff394d3db889c3ac60f9cc82cb01e06676336 (diff)
downloadllvm-d7a1c334ce1f26a056b8b553d2474e895c65c96a.zip
llvm-d7a1c334ce1f26a056b8b553d2474e895c65c96a.tar.gz
llvm-d7a1c334ce1f26a056b8b553d2474e895c65c96a.tar.bz2
DAGCombine: Combine BUILD_VECTOR to TRUNCATE
Summary: Add a combine for creating a truncate to replace a build_vector composed of extracts with indices that form a stride-2^N series. Example: v8i32 V = ... v4i32 build_vector((extract_elt V, 0), (extract_elt V, 2), (extract_elt V, 4), (extract_elt V, 6)) --> v4i32 truncate (bitcast V to v4i64) Related discussion in llvm-dev about canonicalizing shuffles to truncates in LLVM IR: http://lists.llvm.org/pipermail/llvm-dev/2017-January/108936.html. Reviewers: spatel, RKSimon, efriedma, igorb, craig.topper, wolfgangp, delena Reviewed By: delena Subscribers: guyblank, delena, javed.absar, llvm-commits Differential Revision: https://reviews.llvm.org/D34077 llvm-svn: 307036
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions