OSDN Git Service

[DAGCombiner] Remove extra bitcasts surrounding vector shuffles
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 23 Apr 2015 08:43:13 +0000 (08:43 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 23 Apr 2015 08:43:13 +0000 (08:43 +0000)
commit77aa4a8c4df240caa043b84e5340fe31eaa0962d
tree409a6880b2c69e663f7c45a8f2448065fbecec62
parent9311f5b6fe33833c6371778e2b8bd340335672e8
[DAGCombiner] Remove extra bitcasts surrounding vector shuffles

Patch to remove extra bitcasts from shuffles, this is often a legacy of XformToShuffleWithZero being used to combine bitmaskings (of float vectors bitcast to integer vectors) into shuffles: bitcast(shuffle(bitcast(s0),bitcast(s1))) -> shuffle(s0,s1)

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235578 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/combine-or.ll