mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
In visitUREM, arrange for the temporary UDIV node to be
revisited, consistent with the code in visitSREM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e0e04caac
commit
942ca7f808
@ -1423,6 +1423,7 @@ SDValue DAGCombiner::visitUREM(SDNode *N) {
|
||||
// X%C to the equivalent of X-X/C*C.
|
||||
if (N1C && !N1C->isNullValue()) {
|
||||
SDValue Div = DAG.getNode(ISD::UDIV, VT, N0, N1);
|
||||
AddToWorkList(Div.getNode());
|
||||
SDValue OptimizedDiv = combine(Div.getNode());
|
||||
if (OptimizedDiv.getNode() && OptimizedDiv.getNode() != Div.getNode()) {
|
||||
SDValue Mul = DAG.getNode(ISD::MUL, VT, OptimizedDiv, N1);
|
||||
|
Loading…
Reference in New Issue
Block a user