summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-12-13 16:32:44 +0000
committerSanjay Patel <spatel@rotateright.com>2018-12-13 16:32:44 +0000
commitc56f5728ee3aeefda6c03f63593520fb7de45b27 (patch)
tree1c6657b08f3cfaaf702f33a5593b439dac9b951e /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parenta39df2e6d6c05b7275d5af8bf633c84941d474b5 (diff)
downloadbcm5719-llvm-c56f5728ee3aeefda6c03f63593520fb7de45b27.tar.gz
bcm5719-llvm-c56f5728ee3aeefda6c03f63593520fb7de45b27.zip
revert rL349051: [DAGCombiner] after simplifying demanded elements of vector operand of extract, revisit the extract
This causes an address sanitizer bot failure: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/27187/steps/check-llvm%20asan/logs/stdio llvm-svn: 349056
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index b364b1baea7..7768d12c75c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -15698,13 +15698,8 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
if (CstElt->getAPIntValue().ult(VT.getVectorNumElements()))
DemandedElts.setBit(CstElt->getZExtValue());
}
- if (SimplifyDemandedVectorElts(InVec, DemandedElts, true)) {
- // We simplified the operands of this extract element, but if this extract
- // is still alive, visit it again to ensure that it is folded properly.
- if (!N->use_empty())
- AddToWorklist(N);
+ if (SimplifyDemandedVectorElts(InVec, DemandedElts, true))
return SDValue(N, 0);
- }
}
bool BCNumEltsChanged = false;
OpenPOWER on IntegriCloud