mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Add a missing case in visitADD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc7e0f5dd6
commit
56eca9103e
@ -1010,6 +1010,9 @@ SDValue DAGCombiner::visitADD(SDNode *N) {
|
||||
// fold (A+(B-A)) -> B
|
||||
if (N1.getOpcode() == ISD::SUB && N0 == N1.getOperand(1))
|
||||
return N1.getOperand(0);
|
||||
// fold ((B-A)+A) -> B
|
||||
if (N0.getOpcode() == ISD::SUB && N1 == N0.getOperand(1))
|
||||
return N0.getOperand(0);
|
||||
|
||||
if (!VT.isVector() && SimplifyDemandedBits(SDValue(N, 0)))
|
||||
return SDValue(N, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user