diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-20 05:28:39 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-20 05:28:39 +0000 |
commit | 0c9da210f703f0cc98f7e198db1b68073091ce25 (patch) | |
tree | ff3579333e16673bd3cbee3cf80ebc46ce46017a /lib/CodeGen | |
parent | 8c5293c9556317143505c085cf428e11962e1273 (diff) | |
download | external_llvm-0c9da210f703f0cc98f7e198db1b68073091ce25.zip external_llvm-0c9da210f703f0cc98f7e198db1b68073091ce25.tar.gz external_llvm-0c9da210f703f0cc98f7e198db1b68073091ce25.tar.bz2 |
When combining (vextract shuffle (load ), <1,u,u,u>), 0) -> (load ), add users of the final load to the worklist too. Needed by changes I'm preparing to make to X86 backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 1bd1b95..7c4db97 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7353,6 +7353,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) { // Since we're explcitly calling ReplaceAllUses, add the new node to the // worklist explicitly as well. AddToWorkList(Load.getNode()); + AddUsersToWorkList(Load.getNode()); // Add users too // Make sure to revisit this node to clean it up; it will usually be dead. AddToWorkList(N); return SDValue(N, 0); |