Skip to content

Commit

Permalink
fix and un-xfail X86/vec_ss_load_fold.ll
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96720 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Feb 21, 2010
1 parent b92a23f commit f1c6428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/Target/X86/X86ISelDAGToDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/CodeGen/X86/vec_ss_load_fold.ll
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit f1c6428

Please sign in to comment.