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 | aaeae9893625ca0e96cc1ee03f0eeb4b81200402 (patch) | |
| tree | fd7b8e20cc07d691b8984883a6cccd18a200f905 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 5400bad64d9fabcdd31256be703602b077bc06db (diff) | |
| download | bcm5719-llvm-aaeae9893625ca0e96cc1ee03f0eeb4b81200402.tar.gz bcm5719-llvm-aaeae9893625ca0e96cc1ee03f0eeb4b81200402.zip | |
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.
llvm-svn: 153078
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 1bd1b95ad7d..7c4db97bfea 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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); |

