summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-12 03:55:48 +0000
committerChris Lattner <sabre@nondot.org>2006-10-12 03:55:48 +0000
commit40ec2bebf9ddafd2b8639a32d6b561dd306576fc (patch)
treeb2e4bbdf92491592b758d97ecffa69922ec44794 /llvm/lib
parent86a012ab61b8118e134a959afe034384e4f3fecb (diff)
downloadbcm5719-llvm-40ec2bebf9ddafd2b8639a32d6b561dd306576fc.tar.gz
bcm5719-llvm-40ec2bebf9ddafd2b8639a32d6b561dd306576fc.zip
fix compilation failure of smg2000
llvm-svn: 30900
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index 39634735949..e895b045f1d 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -797,7 +797,7 @@ bool X86DAGToDAGISel::SelectScalarSSELoad(SDOperand N, SDOperand &Base,
SDOperand &OutChain) {
if (N.getOpcode() == ISD::SCALAR_TO_VECTOR) {
InChain = N.getOperand(0).getValue(1);
- if (ISD::isNON_EXTLoad(InChain.Val)) {
+ if (ISD::isNON_EXTLoad(InChain.Val) && InChain.getValue(0).hasOneUse()) {
LoadSDNode *LD = cast<LoadSDNode>(InChain);
if (!SelectAddr(LD->getBasePtr(), Base, Scale, Index, Disp))
return false;
OpenPOWER on IntegriCloud