mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 22:00:58 +00:00
[DAGCombiner] Remove some calls to AddToWorklist that should be unnecessary.
The DAGCombiner has a system for ensuring all nodes are visited. It doesn't require an AddToWorkList for every node that is created by a combine. llvm-svn: 338079
This commit is contained in:
parent
f26a94706b
commit
fc4302504c
@ -2856,11 +2856,8 @@ SDValue DAGCombiner::visitMUL(SDNode *N) {
|
||||
(!VT.isVector() || Level <= AfterLegalizeVectorOps)) {
|
||||
SDLoc DL(N);
|
||||
SDValue LogBase2 = BuildLogBase2(N1, DL);
|
||||
AddToWorklist(LogBase2.getNode());
|
||||
|
||||
EVT ShiftVT = getShiftAmountTy(N0.getValueType());
|
||||
SDValue Trunc = DAG.getZExtOrTrunc(LogBase2, DL, ShiftVT);
|
||||
AddToWorklist(Trunc.getNode());
|
||||
return DAG.getNode(ISD::SHL, DL, VT, N0, Trunc);
|
||||
}
|
||||
// fold (mul x, -(1 << c)) -> -(x << c) or (-x) << c
|
||||
|
Loading…
Reference in New Issue
Block a user