isNonImmUse is replaced by IsFoldableBy

llvm-svn: 29365
This commit is contained in:
Evan Cheng 2006-07-27 21:19:10 +00:00
parent 77c08a42ab
commit d6c0c2dfd9
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ bool X86DAGToDAGISel::TryFoldLoad(SDOperand P, SDOperand N,
if (N.getOpcode() == ISD::LOAD && if (N.getOpcode() == ISD::LOAD &&
N.hasOneUse() && N.hasOneUse() &&
!CodeGenMap.count(N.getValue(0)) && !CodeGenMap.count(N.getValue(0)) &&
(P.getNumOperands() == 1 || !isNonImmUse(P.Val, N.Val))) !IsFoldableBy(N.Val, P.Val))
return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp); return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
return false; return false;
} }