mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
DAGCombiner: Partially revert r192795, getNOT was fixed not to create illegal constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5a694ab57
commit
d5ae5b0186
@ -3576,7 +3576,7 @@ SDValue DAGCombiner::visitXOR(SDNode *N) {
|
||||
}
|
||||
// fold (xor (and x, y), y) -> (and (not x), y)
|
||||
if (N0.getOpcode() == ISD::AND && N0.getNode()->hasOneUse() &&
|
||||
N0->getOperand(1) == N1 && isTypeLegal(VT.getScalarType())) {
|
||||
N0->getOperand(1) == N1) {
|
||||
SDValue X = N0->getOperand(0);
|
||||
SDValue NotX = DAG.getNOT(SDLoc(X), X, VT);
|
||||
AddToWorkList(NotX.getNode());
|
||||
|
@ -178,4 +178,6 @@ define i32 @PR17487(i1 %tobool) {
|
||||
|
||||
; X64-LABEL: PR17487:
|
||||
; X64: andn
|
||||
; X32-LABEL: PR17487:
|
||||
; X32: andn
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user