Remove a unnecessary check.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 14 Sep 2006 23:55:02 +0000 (23:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 14 Sep 2006 23:55:02 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30382 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index 9d655b0677b0b7ddd430b04f8103fbbeb7950e6a..144776e68c1f23cff0c280a183cd478cdc0d376d 100644 (file)
@@ -784,7 +784,6 @@ bool X86DAGToDAGISel::TryFoldLoad(SDOperand P, SDOperand N,
                                   SDOperand &Index, SDOperand &Disp) {
   if (N.getOpcode() == ISD::LOAD &&
       N.hasOneUse() &&
-      P.Val->isOnlyUse(N.Val) &&
       CanBeFoldedBy(N.Val, P.Val))
     return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
   return false;