Changed the XOR case to use the isOprNot predicate.

Patch by Jim Laskey!

llvm-svn: 22750
This commit is contained in:
Chris Lattner 2005-08-10 16:35:46 +00:00
parent 67d0753773
commit aeedcc7fc2
1 changed files with 1 additions and 3 deletions

View File

@ -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);