mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 03:30:37 +00:00
Revert accidental change in r237633
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1193b61df0
commit
42d8237570
@ -2122,7 +2122,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) {
|
||||
// fold (sdiv c1, c2) -> c1/c2
|
||||
ConstantSDNode *N0C = isConstOrConstSplat(N0);
|
||||
ConstantSDNode *N1C = isConstOrConstSplat(N1);
|
||||
if (N0C && N1C && N1C->isNullValue())
|
||||
if (N0C && N1C && !N1C->isNullValue())
|
||||
return DAG.FoldConstantArithmetic(ISD::SDIV, SDLoc(N), VT, N0C, N1C);
|
||||
// fold (sdiv X, 1) -> X
|
||||
if (N1C && N1C->getAPIntValue() == 1LL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user