diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-07-08 19:52:19 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-07-08 19:52:19 +0000 |
commit | 28410c684658089852d6f1708fdba5567aa5e299 (patch) | |
tree | 019e634f949e7621a03d53cdd9bdfc2b40427c30 /llvm/lib/CodeGen | |
parent | 0a0e0d4e8e73af4dd3a52e9dff40886885b6d4fa (diff) | |
download | bcm5719-llvm-28410c684658089852d6f1708fdba5567aa5e299.tar.gz bcm5719-llvm-28410c684658089852d6f1708fdba5567aa5e299.zip |
Revert r274829, it caused PR28472.
llvm-svn: 274916
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 3a67fe4ec9d..f1b2566f43a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -12408,7 +12408,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) { // on the constant elements already work. if (InVec.getOpcode() == ISD::INSERT_VECTOR_ELT && EltNo == InVec.getOperand(2)) - return DAG.getAnyExtOrTrunc(InVec.getOperand(1), SDLoc(N), NVT); + return InVec.getOperand(1); // Transform: (EXTRACT_VECTOR_ELT( VECTOR_SHUFFLE )) -> EXTRACT_VECTOR_ELT. // We only perform this optimization before the op legalization phase because |