mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[DAG] Aggressively cleanup dangling node in CombineZExtLogicopShiftLoad.
While dangling nodes will eventually be pruned when they are considered, leaving them disables combines requiring single-use. Reviewers: Carrot, spatel, craig.topper, RKSimon, efriedma Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D57520 llvm-svn: 352784
This commit is contained in:
parent
12cd3e33d7
commit
6f74749663
@ -8465,6 +8465,10 @@ SDValue DAGCombiner::CombineZExtLogicopShiftLoad(SDNode *N) {
|
||||
Load->getValueType(0), ExtLoad);
|
||||
CombineTo(Load, Trunc, ExtLoad.getValue(1));
|
||||
}
|
||||
|
||||
// N0 is dead at this point.
|
||||
recursivelyDeleteUnusedNodes(N0.getNode());
|
||||
|
||||
return SDValue(N,0); // Return N so it doesn't get rechecked!
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user