1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

fix and un-xfail X86/vec_ss_load_fold.ll

llvm-svn: 96720
This commit is contained in:
Chris Lattner 2010-02-21 04:53:34 +00:00
parent abea29dc85
commit b328c57aa4
2 changed files with 2 additions and 4 deletions

View File

@ -1345,9 +1345,8 @@ bool X86DAGToDAGISel::SelectScalarSSELoadXXX(SDNode *Root,
PatternNodeWithChain = N.getOperand(0); PatternNodeWithChain = N.getOperand(0);
if (ISD::isNON_EXTLoad(PatternNodeWithChain.getNode()) && if (ISD::isNON_EXTLoad(PatternNodeWithChain.getNode()) &&
PatternNodeWithChain.hasOneUse() && PatternNodeWithChain.hasOneUse() &&
IsProfitableToFold(N.getOperand(0), PatternNodeWithChain.getNode(), IsProfitableToFold(N.getOperand(0), N.getNode(), Root) &&
Root) && IsLegalToFold(N.getOperand(0), N.getNode(), Root)) {
IsLegalToFold(N.getOperand(0), PatternNodeWithChain.getNode(), Root)) {
LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain); LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
if (!SelectAddr(Root, LD->getBasePtr(), Base, Scale, Index, Disp,Segment)) if (!SelectAddr(Root, LD->getBasePtr(), Base, Scale, Index, Disp,Segment))
return false; return false;

View File

@ -1,5 +1,4 @@
; RUN: llc < %s -march=x86 -mattr=+sse,+sse2,+sse41 | FileCheck %s ; RUN: llc < %s -march=x86 -mattr=+sse,+sse2,+sse41 | FileCheck %s
; XFAIL: *
target datalayout = "e-p:32:32" target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8.7.2" target triple = "i686-apple-darwin8.7.2"