mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Changed the XOR case to use the isOprNot predicate.
Patch by Jim Laskey! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22750 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d7d99fd44
commit
df706e3f0c
@ -1752,9 +1752,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
|
||||
|
||||
case ISD::XOR: {
|
||||
// Check for EQV: xor, (xor a, -1), b
|
||||
if (N.getOperand(0).getOpcode() == ISD::XOR &&
|
||||
isIntImmediate(N.getOperand(0).getOperand(1), Tmp2) &&
|
||||
(signed)Tmp2 == -1) {
|
||||
if (isOprNot(N.getOperand(0))) {
|
||||
Tmp1 = SelectExpr(N.getOperand(0).getOperand(0));
|
||||
Tmp2 = SelectExpr(N.getOperand(1));
|
||||
BuildMI(BB, PPC::EQV, 2, Result).addReg(Tmp1).addReg(Tmp2);
|
||||
|
Loading…
Reference in New Issue
Block a user