[llvm] r364405 - [DAGCombine] visitEXTRACT_SUBVECTOR - add TODO for extract_subvector(bitcast()) support
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 04:17:39 PDT 2019
Author: rksimon
Date: Wed Jun 26 04:17:38 2019
New Revision: 364405
URL: http://llvm.org/viewvc/llvm-project?rev=364405&view=rev
Log:
[DAGCombine] visitEXTRACT_SUBVECTOR - add TODO for extract_subvector(bitcast()) support
We support 'big to little' (e.g. extract_subvector(v16i8 bitcast(v2i64))) but not 'little to big' cases (e.g. extract_subvector(v2i64 bitcast(v16i8)))
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=364405&r1=364404&r2=364405&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Jun 26 04:17:38 2019
@@ -18132,6 +18132,7 @@ SDValue DAGCombiner::visitEXTRACT_SUBVEC
return DAG.getBitcast(NVT, NewExtract);
}
}
+ // TODO - handle (DestNumElts % SrcNumElts) == 0
}
// Combine:
More information about the llvm-commits
mailing list