[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Chris Lattner
sabre at nondot.org
Wed Oct 11 20:56:02 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86ISelDAGToDAG.cpp updated: 1.115 -> 1.116
---
Log message:
fix compilation failure of smg2000
---
Diffs of the changes: (+1 -1)
X86ISelDAGToDAG.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.115 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.116
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.115 Wed Oct 11 17:09:58 2006
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed Oct 11 22:55:48 2006
@@ -797,7 +797,7 @@
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;
More information about the llvm-commits
mailing list