fix and un-xfail X86/vec_ss_load_fold.ll
authorChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 04:53:34 +0000 (04:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 04:53:34 +0000 (04:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96720 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/vec_ss_load_fold.ll

index 79711dfff3113c70c67efdc95ac06a96b4b31044..b6e86bdce767ca24ab547b6d76efbf2acc4111d3 100644 (file)
@@ -1345,9 +1345,8 @@ bool X86DAGToDAGISel::SelectScalarSSELoadXXX(SDNode *Root,
     PatternNodeWithChain = N.getOperand(0);
     if (ISD::isNON_EXTLoad(PatternNodeWithChain.getNode()) &&
         PatternNodeWithChain.hasOneUse() &&
-        IsProfitableToFold(N.getOperand(0), PatternNodeWithChain.getNode(),
-                           Root) &&
-        IsLegalToFold(N.getOperand(0), PatternNodeWithChain.getNode(), Root)) {
+        IsProfitableToFold(N.getOperand(0), N.getNode(), Root) &&
+        IsLegalToFold(N.getOperand(0), N.getNode(), Root)) {
       LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
       if (!SelectAddr(Root, LD->getBasePtr(), Base, Scale, Index, Disp,Segment))
         return false;
index 27a27df08a39169bbbd742b73ad46ec2fdf422e6..c8b2927b71f392dc0bba04f4bd1ca90caf2438fa 100644 (file)
@@ -1,5 +1,4 @@
 ; RUN: llc < %s -march=x86 -mattr=+sse,+sse2,+sse41 | FileCheck %s
-; XFAIL: *
 
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin8.7.2"