forked from OSchip/llvm-project
parent
a07c9c7c56
commit
3c29aff9ff
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue